Commit 510e2b91 authored by michael's avatar michael

simplify


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7567 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c5826804
...@@ -1522,21 +1522,18 @@ static int mpegps_read_pes_header(AVFormatContext *s, ...@@ -1522,21 +1522,18 @@ static int mpegps_read_pes_header(AVFormatContext *s,
len -= 2; len -= 2;
if (header_len > len) if (header_len > len)
goto error_redo; goto error_redo;
len -= header_len;
if (flags & 0x80) { if (flags & 0x80) {
dts = pts = get_pts(&s->pb, -1); dts = pts = get_pts(&s->pb, -1);
header_len -= 5; header_len -= 5;
len -= 5;
if (flags & 0x40) { if (flags & 0x40) {
dts = get_pts(&s->pb, -1); dts = get_pts(&s->pb, -1);
header_len -= 5; header_len -= 5;
len -= 5;
} }
} }
len -= header_len; if(header_len < 0)
while (header_len > 0) { goto error_redo;
get_byte(&s->pb); url_fskip(&s->pb, header_len);
header_len--;
}
} }
else if( c!= 0xf ) else if( c!= 0xf )
goto redo; goto redo;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment