-
Notifications
You must be signed in to change notification settings - Fork 65
Return unknown for unsupported codec in gecko #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kinetiknz
left a comment
There was a problem hiding this 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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
mp4parse_capi/src/lib.rs
Outdated
| TrackType::Unknown => return mp4parse_status::UNSUPPORTED, | ||
| }; | ||
|
|
||
| // Return UNKNOWN to gecko for unsupported format. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 => |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
320f0e8 to
b716d09
Compare
|
LGTM. Fine to merge as-is, but it'd be nice to clean up the references in boxes.rs too. |
|
Sure, thanks for review. |
b716d09 to
cc17000
Compare
cc17000 to
9644805
Compare
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1379047