mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-26 08:41:38 +00:00
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
@ -319,7 +319,7 @@ static int mv_read_header(AVFormatContext *avctx)
|
|||||||
avio_skip(pb, 4);
|
avio_skip(pb, 4);
|
||||||
vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
|
vst->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
|
||||||
vst->avg_frame_rate = fps;
|
vst->avg_frame_rate = fps;
|
||||||
vst->nb_frames = avio_rb32(pb);
|
vst->duration = vst->nb_frames = avio_rb32(pb);
|
||||||
v = avio_rb32(pb);
|
v = avio_rb32(pb);
|
||||||
switch (v) {
|
switch (v) {
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user