diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-01-05 11:45:51 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-01-29 07:31:55 +0100 |
commit | 729b37149c9cbef77d5ad75d91017af3b9084577 (patch) | |
tree | 8498591210fc824456a5cd03de37e8d1df9d78bb /libavformat/mvi.c | |
parent | aec50f79e7460340a148a3096fe212d67edc2c64 (diff) | |
download | ffmpeg-729b37149c9cbef77d5ad75d91017af3b9084577.tar.gz |
mvi: set framerate
This container does not store timestamps and thus supports CFR only.
Diffstat (limited to 'libavformat/mvi.c')
-rw-r--r-- | libavformat/mvi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mvi.c b/libavformat/mvi.c index 10ec8bbb20..7fb163bea3 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; |