diff --git a/src/FFmpegWriter.cpp b/src/FFmpegWriter.cpp index e10b7026f..cc4b3d3a7 100644 --- a/src/FFmpegWriter.cpp +++ b/src/FFmpegWriter.cpp @@ -1266,13 +1266,6 @@ AVStream *FFmpegWriter::add_video_stream() { st->avg_frame_rate = av_inv_q(c->time_base); st->time_base.num = info.video_timebase.num; st->time_base.den = info.video_timebase.den; -#if (LIBAVFORMAT_VERSION_MAJOR >= 58) - _Pragma ("GCC diagnostic push"); - _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\""); \ - st->codec->time_base.num = info.video_timebase.num; - st->codec->time_base.den = info.video_timebase.den; - _Pragma ("GCC diagnostic pop"); -#endif c->gop_size = 12; /* TODO: add this to "info"... emit one intra frame every twelve frames at most */ c->max_b_frames = 10;