Mercurial > libavformat.hg
changeset 1668:b609473bf4bb libavformat
simplify
author | michael |
---|---|
date | Wed, 17 Jan 2007 12:06:31 +0000 |
parents | a20d8757d598 |
children | 30b51285b882 |
files | mpeg.c |
diffstat | 1 files changed, 4 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg.c Wed Jan 17 10:55:01 2007 +0000 +++ b/mpeg.c Wed Jan 17 12:06:31 2007 +0000 @@ -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;