forked from FFmpeg/FFmpeg
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>
This commit is contained in:
parent
3c9ffbd009
commit
50bfd5e96e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue