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.
1 parent 93d12e7 commit d9e6af5Copy full SHA for d9e6af5
src/FFmpegWriter.cpp
@@ -1266,13 +1266,6 @@ AVStream *FFmpegWriter::add_video_stream() {
1266
st->avg_frame_rate = av_inv_q(c->time_base);
1267
st->time_base.num = info.video_timebase.num;
1268
st->time_base.den = info.video_timebase.den;
1269
-#if (LIBAVFORMAT_VERSION_MAJOR >= 58)
1270
- _Pragma ("GCC diagnostic push");
1271
- _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\""); \
1272
- st->codec->time_base.num = info.video_timebase.num;
1273
- st->codec->time_base.den = info.video_timebase.den;
1274
- _Pragma ("GCC diagnostic pop");
1275
-#endif
1276
1277
c->gop_size = 12; /* TODO: add this to "info"... emit one intra frame every twelve frames at most */
1278
c->max_b_frames = 10;
0 commit comments