avformat/mvdec: explicitly set duration

Resolves a warning that duration is being innaccurately estimated based
on bitrate.

Signed-off-by: John-Paul Stewart <jpstewart@personalprojects.net>
Reviewed-by: Peter Ross <pross@xvid.org>
pull/378/head
John-Paul Stewart 3 years ago committed by Peter Ross
parent 3c9ffbd009
commit 50bfd5e96e
  1. 2
      libavformat/mvdec.c

@ -319,7 +319,7 @@ static int mv_read_header(AVFormatContext *avctx)
avio_skip(pb, 4);
vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
vst->avg_frame_rate = fps;
vst->nb_frames = avio_rb32(pb);
vst->duration = vst->nb_frames = avio_rb32(pb);
v = avio_rb32(pb);
switch (v) {
case 1:

Loading…
Cancel
Save