Mercurial > mplayer.hg
changeset 6929:a3aac765967d
allow early exit from esds parsing, so decoder info (type & bitrate) are
available even if no codec-specific data or other extras found
author | arpi |
---|---|
date | Mon, 05 Aug 2002 18:22:51 +0000 |
parents | 668ab67dce8f |
children | cae1dd6343e7 |
files | libmpdemux/parse_mp4.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 */