mvi: set framerate

This container does not store timestamps and thus supports CFR only.
This commit is contained in:
Anton Khirnov 2013-01-05 11:45:51 +01:00
parent aec50f79e7
commit 729b37149c
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ static int read_header(AVFormatContext *s)
ast->codec->bit_rate = ast->codec->sample_rate * 8; ast->codec->bit_rate = ast->codec->sample_rate * 8;
avpriv_set_pts_info(vst, 64, msecs_per_frame, 1000000); 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_type = AVMEDIA_TYPE_VIDEO;
vst->codec->codec_id = AV_CODEC_ID_MOTIONPIXELS; vst->codec->codec_id = AV_CODEC_ID_MOTIONPIXELS;