[FFmpeg-cvslog] mvi: set framerate

Anton Khirnov git at videolan.org
Tue Jan 29 14:24:35 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Jan  5 11:45:51 2013 +0100| [729b37149c9cbef77d5ad75d91017af3b9084577] | committer: Anton Khirnov

mvi: set framerate

This container does not store timestamps and thus supports CFR only.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=729b37149c9cbef77d5ad75d91017af3b9084577
---

 libavformat/mvi.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/mvi.c b/libavformat/mvi.c
index 10ec8bb..7fb163b 100644
--- a/libavformat/mvi.c
+++ b/libavformat/mvi.c
@@ -87,6 +87,7 @@ static int read_header(AVFormatContext *s)
     ast->codec->bit_rate        = ast->codec->sample_rate * 8;
 
     avpriv_set_pts_info(vst, 64, msecs_per_frame, 1000000);
+    vst->avg_frame_rate    = av_inv_q(vst->time_base);
     vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
     vst->codec->codec_id   = AV_CODEC_ID_MOTIONPIXELS;
 



More information about the ffmpeg-cvslog mailing list