ffprobe: remove usage of deprecation warning removal pragmas
authorJames Almer <jamrial@gmail.com>
Fri, 2 Feb 2018 20:51:24 +0000 (17:51 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 2 Feb 2018 20:51:24 +0000 (17:51 -0300)
Fixes compilation in non Windows targets.

Signed-off-by: James Almer <jamrial@gmail.com>
fftools/ffprobe.c

index fc3a14a..967adbe 100644 (file)
@@ -2915,10 +2915,8 @@ static int open_input_file(InputFile *ifile, const char *filename)
             ist->dec_ctx->pkt_timebase = stream->time_base;
             ist->dec_ctx->framerate = stream->avg_frame_rate;
 #if FF_API_LAVF_AVCTX
-FF_DISABLE_DEPRECATION_WARNINGS
             ist->dec_ctx->coded_width = stream->codec->coded_width;
             ist->dec_ctx->coded_height = stream->codec->coded_height;
-FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 
             if (avcodec_open2(ist->dec_ctx, codec, &opts) < 0) {