aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-01-15 21:14:46 +0100
committerAnton Khirnov <anton@khirnov.net>2014-01-17 10:30:45 +0100
commit5ef11b8dcc054b230deb9b20493255c14a80597d (patch)
tree44e021c9c985753889efed41cc2919d4f5c4029e
parent2ce8bca51f7264b47027f69d50dd8e49aa2fd683 (diff)
downloadffmpeg-5ef11b8dcc054b230deb9b20493255c14a80597d.tar.gz
yuv4mpeg: set average frame rate
-rw-r--r--libavformat/yuv4mpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c
index cc2755f4b6..f793a0e170 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;