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/utils.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/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index a2d14fbb4b..bfc4ed366e 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -821,7 +821,7 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt) compute_pkt_fields(s, st, NULL, pkt); s->cur_st = NULL; return 0; - } else if (s->cur_len > 0) { + } else if (s->cur_len > 0 && !st->discard) { len = av_parser_parse(st->parser, &st->codec, &pkt->data, &pkt->size, s->cur_ptr, s->cur_len, s->cur_pkt.pts, s->cur_pkt.dts); |