[Mplayer-cvslog] CVS: main/libmpdemux parse_mp4.c,1.7,1.8
Arpi of Ize
arpi at mplayerhq.hu
Mon Aug 5 20:22:53 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv10620
Modified Files:
parse_mp4.c
Log Message:
allow early exit from esds parsing, so decoder info (type & bitrate) are
available even if no codec-specific data or other extras found
Index: parse_mp4.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/parse_mp4.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- parse_mp4.c 30 Mar 2002 14:42:32 -0000 1.7
+++ parse_mp4.c 5 Aug 2002 18:22:51 -0000 1.8
@@ -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 */
More information about the MPlayer-cvslog
mailing list