Bug 1168732 - Update libnestegg to pick up nestegg_track_codec_data_count fix for Opus handling. r=kinetik

This commit is contained in:
Jan Gerber 2015-05-28 14:24:28 +12:00
parent 174cb2b5b9
commit ccff3ec8f9
2 changed files with 10 additions and 2 deletions

View File

@ -5,4 +5,4 @@ Makefile.in build files for the Mozilla build system.
The nestegg git repository is: git://github.com/kinetiknz/nestegg.git
The git commit ID used was 493fb475842db86de657101ffac9a06a0cf688de.
The git commit ID used was d90e2ccac66e90c4a6f25318f8092b8596c97a67.

View File

@ -2224,6 +2224,7 @@ nestegg_track_codec_data_count(nestegg * ctx, unsigned int track,
{
struct track_entry * entry;
struct ebml_binary codec_private;
int codec_id;
unsigned char * p;
*count = 0;
@ -2232,7 +2233,14 @@ nestegg_track_codec_data_count(nestegg * ctx, unsigned int track,
if (!entry)
return -1;
if (nestegg_track_codec_id(ctx, track) != NESTEGG_CODEC_VORBIS)
codec_id = nestegg_track_codec_id(ctx, track);
if (codec_id == NESTEGG_CODEC_OPUS) {
*count = 1;
return 0;
}
if (codec_id != NESTEGG_CODEC_VORBIS)
return -1;
if (ne_get_binary(entry->codec_private, &codec_private) != 0)