Mercurial > libavformat.hg
comparison mpeg.c @ 708:d79164865a7c libavformat
more fine grained discarding of packets
author | michael |
---|---|
date | Thu, 17 Mar 2005 01:25:01 +0000 |
parents | 829c5c8e5cf2 |
children | 2443f9469df2 |
comparison
equal
deleted
inserted
replaced
707:cc612862d461 | 708:d79164865a7c |
---|---|
1539 st->codec.codec_type = type; | 1539 st->codec.codec_type = type; |
1540 st->codec.codec_id = codec_id; | 1540 st->codec.codec_id = codec_id; |
1541 if (codec_id != CODEC_ID_PCM_S16BE) | 1541 if (codec_id != CODEC_ID_PCM_S16BE) |
1542 st->need_parsing = 1; | 1542 st->need_parsing = 1; |
1543 found: | 1543 found: |
1544 if(st->discard) | 1544 if(st->discard >= AVDISCARD_ALL) |
1545 goto skip; | 1545 goto skip; |
1546 if (startcode >= 0xa0 && startcode <= 0xbf) { | 1546 if (startcode >= 0xa0 && startcode <= 0xbf) { |
1547 int b1, freq; | 1547 int b1, freq; |
1548 | 1548 |
1549 /* for LPCM, we just skip the header and consider it is raw | 1549 /* for LPCM, we just skip the header and consider it is raw |