X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fyuv4mpeg.c;h=bc07b4c55de52bd14937170ee84d506c3761e238;hb=f1edf881ef83de9f8af12fae32cb28f895ae988a;hp=1999c7336428677d16d89a9fd7a01b2c35585c52;hpb=53e6977c07a8720cf4f785ef23686bf34b5cec57;p=ffmpeg diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c index 1999c733642..bc07b4c55de 100644 --- a/libavformat/yuv4mpeg.c +++ b/libavformat/yuv4mpeg.c @@ -517,6 +517,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;