diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-01-22 13:36:02 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-22 13:36:02 +0000 |
commit | b9866ebcc7d9891fb6b07cab70319fe1742a100a (patch) | |
tree | 3e74ec233cd2ef881ee097956e7a8ca3e6b215cf /libavformat/flvdec.c | |
parent | e19456e3ee263ae1c46b623c8394394710721ff4 (diff) | |
download | ffmpeg-b9866ebcc7d9891fb6b07cab70319fe1742a100a.tar.gz |
support discarding uninterresting packets
Originally committed as revision 3860 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 3664f8a024..69257a5fc8 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -106,6 +106,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) st->codec.frame_rate_base= 1; st->codec.frame_rate= 1000; } + if(st->discard){ + url_fskip(&s->pb, size); + continue; + } break; } |