ffmpeg: fill avg_frame_rate

pull/7213/head
Alexander Alekhin 8 years ago
parent 6d54abbd0f
commit 03767340bb
  1. 4
      modules/videoio/src/cap_ffmpeg_impl.hpp

@ -1582,6 +1582,10 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc,
}
#endif
#if LIBAVCODEC_BUILD >= CALC_FFMPEG_VERSION(52, 42, 0)
st->avg_frame_rate = (AVRational){frame_rate, frame_rate_base};
#endif
return st;
}

Loading…
Cancel
Save