Skip to content

Commit 7ed26cf

Browse files
jonoomphferdnyc
andauthored
Replace _Pragma with #pragma
Co-authored-by: Frank Dana <[email protected]>
1 parent 2a04301 commit 7ed26cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FFmpegWriter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,11 +1223,11 @@ AVStream *FFmpegWriter::add_video_stream() {
12231223
st->time_base.num = info.video_timebase.num;
12241224
st->time_base.den = info.video_timebase.den;
12251225
#if (LIBAVFORMAT_VERSION_MAJOR >= 58)
1226-
_Pragma ("GCC diagnostic push");
1227-
_Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\""); \
1226+
#pragma GCC diagnostic push
1227+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
12281228
st->codec->time_base.num = info.video_timebase.num;
12291229
st->codec->time_base.den = info.video_timebase.den;
1230-
_Pragma ("GCC diagnostic pop");
1230+
#pragma GCC diagnostic pop
12311231
#endif
12321232

12331233
c->gop_size = 12; /* TODO: add this to "info"... emit one intra frame every twelve frames at most */

0 commit comments

Comments
 (0)