diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-04-13 07:05:27 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-04-22 07:46:03 +0200 |
commit | f9157463dbcd2db8fe9504197c0c04d0d7d04f31 (patch) | |
tree | 58d4fb0adc9903218d6883a81631320d9d8ded28 | |
parent | 1ae8198bca749a0cff205196cc83d35b9962849b (diff) | |
download | ffmpeg-f9157463dbcd2db8fe9504197c0c04d0d7d04f31.tar.gz |
lavf: do not use the parser duration for video
The parser has no way of knowing video duration, and therefore no video
parsers set it.
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 164cdd7a6a..e35c1e4656 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -956,12 +956,6 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index) st->time_base, AV_ROUND_DOWN); } - } else if (st->codec->time_base.num != 0 && - st->codec->time_base.den != 0) { - out_pkt.duration = av_rescale_q_rnd(st->parser->duration, - st->codec->time_base, - st->time_base, - AV_ROUND_DOWN); } out_pkt.stream_index = st->index; |