We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 782d764 + 7ed26cf commit 1cdb49fCopy full SHA for 1cdb49f
src/FFmpegWriter.cpp
@@ -1222,6 +1222,13 @@ AVStream *FFmpegWriter::add_video_stream() {
1222
st->avg_frame_rate = av_inv_q(c->time_base);
1223
st->time_base.num = info.video_timebase.num;
1224
st->time_base.den = info.video_timebase.den;
1225
+#if (LIBAVFORMAT_VERSION_MAJOR >= 58)
1226
+ #pragma GCC diagnostic push
1227
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
1228
+ st->codec->time_base.num = info.video_timebase.num;
1229
+ st->codec->time_base.den = info.video_timebase.den;
1230
+ #pragma GCC diagnostic pop
1231
+#endif
1232
1233
c->gop_size = 12; /* TODO: add this to "info"... emit one intra frame every twelve frames at most */
1234
c->max_b_frames = 10;
0 commit comments