Fixing FFmpeg version breakage in FFmpegWriter

This commit is contained in:
Jonathan Thomas
2018-03-29 01:29:10 -05:00
parent 22384c7705
commit 0db54c8a2c

View File

@@ -926,7 +926,7 @@ AVStream* FFmpegWriter::add_video_stream()
identically 1. */
c->time_base.num = info.video_timebase.num;
c->time_base.den = info.video_timebase.den;
#if LIBAVFORMAT_VERSION_MAJOR >= 55
#if LIBAVFORMAT_VERSION_MAJOR >= 56
c->framerate = av_inv_q(c->time_base);
#endif
st->avg_frame_rate = av_inv_q(c->time_base);