From 40b9891d8a02458beb4528ec734d88f399b32661 Mon Sep 17 00:00:00 2001 From: eisneinechse <42617957+eisneinechse@users.noreply.github.com> Date: Thu, 20 Jun 2019 13:32:30 -0700 Subject: [PATCH] Update FFmpegWriter.cpp Reverse 1st attempt --- src/FFmpegWriter.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/FFmpegWriter.cpp b/src/FFmpegWriter.cpp index 64618ce5..072ac6d7 100644 --- a/src/FFmpegWriter.cpp +++ b/src/FFmpegWriter.cpp @@ -992,14 +992,7 @@ AVStream *FFmpegWriter::add_audio_stream() { throw InvalidCodec("A valid audio codec could not be found for this file.", path); // Create a new audio stream -#if (IS_FFMPEG_3_2 && (LIBAVFORMAT_VERSION_MAJOR < 58)) -_Pragma ("GCC diagnostic push") -_Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"") -#endif AV_FORMAT_NEW_STREAM(oc, audio_codec, codec, st) -#if (IS_FFMPEG_3_2 && (LIBAVFORMAT_VERSION_MAJOR < 58)) -_Pragma ("GCC diagnostic pop") -#endif c->codec_id = codec->id; #if LIBAVFORMAT_VERSION_MAJOR >= 53 @@ -1082,14 +1075,7 @@ AVStream *FFmpegWriter::add_video_stream() { throw InvalidCodec("A valid video codec could not be found for this file.", path); // Create a new video stream -#if (IS_FFMPEG_3_2 && (LIBAVFORMAT_VERSION_MAJOR < 58)) -_Pragma ("GCC diagnostic push") -_Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"") -#endif AV_FORMAT_NEW_STREAM(oc, video_codec, codec, st) -#if (IS_FFMPEG_3_2 && (LIBAVFORMAT_VERSION_MAJOR < 58)) -_Pragma ("GCC diagnostic pop") -#endif c->codec_id = codec->id; #if LIBAVFORMAT_VERSION_MAJOR >= 53