1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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.
This commit is contained in:
Anton Khirnov
2014-04-13 07:05:27 +02:00
parent 1ae8198bca
commit f9157463db

View File

@@ -956,12 +956,6 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index)
st->time_base, st->time_base,
AV_ROUND_DOWN); 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; out_pkt.stream_index = st->index;