[FFmpeg-cvslog] yuv4mpeg: set average frame rate

Anton Khirnov git at videolan.org
Fri Jan 17 16:33:54 CET 2014


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jan 15 21:14:46 2014 +0100| [5ef11b8dcc054b230deb9b20493255c14a80597d] | committer: Anton Khirnov

yuv4mpeg: set average frame rate

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

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

diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c
index cc2755f..f793a0e 100644
--- a/libavformat/yuv4mpeg.c
+++ b/libavformat/yuv4mpeg.c
@@ -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;



More information about the ffmpeg-cvslog mailing list