Skip to content

Conversation

@alfredoyang
Copy link
Contributor

Copy link
Collaborator

@kinetiknz kinetiknz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but questions about removing more code.

AudioCodecSpecific::ES_Descriptor(_) =>
mp4parse_codec::UNKNOWN,
AudioCodecSpecific::MP3 =>
mp4parse_codec::MP3,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these from them C API enum?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

TrackType::Unknown => return mp4parse_status::UNSUPPORTED,
};

// Return UNKNOWN to gecko for unsupported format.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than reference Gecko explicitly (since this library is nominally disconnected from Gecko), just say something about not wanting to support these formats in the API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed.

mp4parse_codec::MP4V,
VideoCodecSpecific::ESDSConfig(_) => // Gecko doesn't support MP4V (14496-2) video.
mp4parse_codec::UNKNOWN,
VideoCodecSpecific::JPEG =>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth keeping the internal parsing code and enum entries for JPEG, AC3/EC3 at this point?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'll remove them.

@alfredoyang alfredoyang force-pushed the return_unknown_codec branch 3 times, most recently from 320f0e8 to b716d09 Compare July 12, 2017 03:58
@kinetiknz
Copy link
Collaborator

LGTM. Fine to merge as-is, but it'd be nice to clean up the references in boxes.rs too.

@alfredoyang
Copy link
Contributor Author

Sure, thanks for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants