Merge commit '5ef11b8dcc054b230deb9b20493255c14a80597d'
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 17 Jan 2014 15:18:27 +0000 (16:18 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 17 Jan 2014 15:18:40 +0000 (16:18 +0100)
* commit '5ef11b8dcc054b230deb9b20493255c14a80597d':
  yuv4mpeg: set average frame rate

Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/yuv4mpeg.c

index 1999c73..bc07b4c 100644 (file)
@@ -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;