summaryrefslogtreecommitdiff
path: root/libavformat/yuv4mpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-17 16:18:27 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-17 16:18:40 +0100
commit6e2d3ba0eea1592e182d87a3067ff5d485f2f383 (patch)
tree72bd5b43b6f9bfc2759ddf57ee0b3518191f1160 /libavformat/yuv4mpeg.c
parent206c06d96f68be737202c0fb554c13fb8b261133 (diff)
parent5ef11b8dcc054b230deb9b20493255c14a80597d (diff)
Merge commit '5ef11b8dcc054b230deb9b20493255c14a80597d'
* commit '5ef11b8dcc054b230deb9b20493255c14a80597d': yuv4mpeg: set average frame rate Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/yuv4mpeg.c')
-rw-r--r--libavformat/yuv4mpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/yuv4mpeg.c b/libavformat/yuv4mpeg.c
index 1999c73364..bc07b4c55d 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;