Skip to content
Snippets Groups Projects
Commit f9157463 authored by Anton Khirnov's avatar Anton Khirnov
Browse files

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.
parent 1ae8198b
Branches
Tags
No related merge requests found
...@@ -956,12 +956,6 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, int stream_index) ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment