1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

yuv4mpeg: set average frame rate

This commit is contained in:
Anton Khirnov 2014-01-15 21:14:46 +01:00
parent 2ce8bca51f
commit 5ef11b8dcc

View File

@ -361,6 +361,7 @@ static int yuv4_read_header(AVFormatContext *s)
st->codec->height = height;
av_reduce(&raten, &rated, raten, rated, (1UL << 31) - 1);
avpriv_set_pts_info(st, 64, rated, raten);
st->avg_frame_rate = av_inv_q(st->time_base);
st->codec->pix_fmt = pix_fmt;
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;