[Ffmpeg-cvslog] r7567 - trunk/libavformat/mpeg.c
michael
subversion
Wed Jan 17 13:06:31 CET 2007
Author: michael
Date: Wed Jan 17 13:06:31 2007
New Revision: 7567
Modified:
trunk/libavformat/mpeg.c
Log:
simplify
Modified: trunk/libavformat/mpeg.c
==============================================================================
--- trunk/libavformat/mpeg.c (original)
+++ trunk/libavformat/mpeg.c Wed Jan 17 13:06:31 2007
@@ -1522,21 +1522,18 @@
len -= 2;
if (header_len > len)
goto error_redo;
+ len -= header_len;
if (flags & 0x80) {
dts = pts = get_pts(&s->pb, -1);
header_len -= 5;
- len -= 5;
if (flags & 0x40) {
dts = get_pts(&s->pb, -1);
header_len -= 5;
- len -= 5;
}
}
- len -= header_len;
- while (header_len > 0) {
- get_byte(&s->pb);
- header_len--;
- }
+ if(header_len < 0)
+ goto error_redo;
+ url_fskip(&s->pb, header_len);
}
else if( c!= 0xf )
goto redo;
More information about the ffmpeg-cvslog
mailing list