Skip to content

check channelcounts in CSD #40

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

Merged
merged 2 commits into from
Oct 26, 2016
Merged

Conversation

alfredoyang
Copy link
Contributor

Audio channel count in ESDS is different comparing to AudioSampleEntry for Facebook video. Stagefright uses audio channel count from ESDS.
So MP4 rust parser should be able to retrieve it.

https://bugzilla.mozilla.org/show_bug.cgi?id=1311929

Copy link
Contributor

@rillian rillian left a comment

Choose a reason for hiding this comment

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

r=me with the test fixed.

@@ -792,7 +795,7 @@ fn arg_validation_with_data() {

let mut audio = Default::default();
assert_eq!(MP4PARSE_OK, mp4parse_get_track_audio_info(parser, 1, &mut audio));
assert_eq!(audio.channels, 2);
assert_eq!(audio.channels, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to make the same change in mp4parse_capi/examples/test.cc.

@kinetiknz kinetiknz merged commit f509579 into mozilla:master Oct 26, 2016
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.

3 participants