Commit 6e2d3ba0 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '5ef11b8d'

* commit '5ef11b8d':
  yuv4mpeg: set average frame rate
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 206c06d9 5ef11b8d
...@@ -517,6 +517,7 @@ static int yuv4_read_header(AVFormatContext *s) ...@@ -517,6 +517,7 @@ static int yuv4_read_header(AVFormatContext *s)
st->codec->height = height; st->codec->height = height;
av_reduce(&raten, &rated, raten, rated, (1UL << 31) - 1); av_reduce(&raten, &rated, raten, rated, (1UL << 31) - 1);
avpriv_set_pts_info(st, 64, rated, raten); 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->pix_fmt = pix_fmt;
st->codec->codec_type = AVMEDIA_TYPE_VIDEO; st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = AV_CODEC_ID_RAWVIDEO; st->codec->codec_id = AV_CODEC_ID_RAWVIDEO;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment