more fine grained discarding of packets

Originally committed as revision 4051 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2005-03-17 01:25:01 +00:00
parent cc973ecbe7
commit f3356e9c9e
11 changed files with 46 additions and 17 deletions

View File

@@ -1541,7 +1541,7 @@ static int mpegps_read_packet(AVFormatContext *s,
if (codec_id != CODEC_ID_PCM_S16BE)
st->need_parsing = 1;
found:
if(st->discard)
if(st->discard >= AVDISCARD_ALL)
goto skip;
if (startcode >= 0xa0 && startcode <= 0xbf) {
int b1, freq;