# HG changeset patch # User arpi # Date 1028571771 0 # Node ID a3aac765967d1ee7685bc518fba2d92958947725 # Parent 668ab67dce8fa44dd4312cf49659371e11a8e80e allow early exit from esds parsing, so decoder info (type & bitrate) are available even if no codec-specific data or other extras found diff -r 668ab67dce8f -r a3aac765967d libmpdemux/parse_mp4.c --- a/libmpdemux/parse_mp4.c Mon Aug 05 18:22:14 2002 +0000 +++ b/libmpdemux/parse_mp4.c Mon Aug 05 18:22:51 2002 +0000 @@ -102,13 +102,15 @@ esds->bufferSizeDB, esds->maxBitrate/1000.0, esds->avgBitrate/1000.0); + esds->decoderConfigLen=0; + if (len < 15) { - freereturn(s,1); + freereturn(s,0); } /* get and verify DecSpecificInfoTag */ if (stream_read_char(s) != MP4DecSpecificDescrTag) { - freereturn(s,1); + freereturn(s,0); } /* read length */ @@ -125,7 +127,7 @@ /* get and verify SLConfigDescrTag */ if(stream_read_char(s) != MP4SLConfigDescrTag) { - freereturn(s,1); + freereturn(s,0); } /* Note: SLConfig is usually constant value 2, size 1Byte */