Replace _Pragma with #pragma

Co-authored-by: Frank Dana <ferdnyc@gmail.com>
This commit is contained in:
Jonathan Thomas
2020-06-02 13:30:05 -05:00
committed by GitHub
parent 2a04301482
commit 7ed26cf022

View File

@@ -1223,11 +1223,11 @@ AVStream *FFmpegWriter::add_video_stream() {
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\""); \
#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");
#pragma GCC diagnostic pop
#endif
c->gop_size = 12; /* TODO: add this to "info"... emit one intra frame every twelve frames at most */