]> git.sesse.net Git - ffmpeg/commitdiff
ffprobe: remove an unnecessary deprecation guard
authorAnton Khirnov <anton@khirnov.net>
Mon, 8 Feb 2021 11:00:13 +0000 (12:00 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 22 Feb 2021 10:13:40 +0000 (11:13 +0100)
The code it is guarding is not accessing anything deprecated
(disregarding the fact that a library caller must not use FF_API
deprecation guards).

fftools/ffprobe.c

index 3453aa09ff3ae8be9d13cc9b5bc33bbbd5b05dd5..4e5beb5710b7167578f1485b1841939900e89d06 100644 (file)
@@ -2646,13 +2646,11 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
     case AVMEDIA_TYPE_VIDEO:
         print_int("width",        par->width);
         print_int("height",       par->height);
-#if FF_API_LAVF_AVCTX
         if (dec_ctx) {
             print_int("coded_width",  dec_ctx->coded_width);
             print_int("coded_height", dec_ctx->coded_height);
             print_int("closed_captions", !!(dec_ctx->properties & FF_CODEC_PROPERTY_CLOSED_CAPTIONS));
         }
-#endif
         print_int("has_b_frames", par->video_delay);
         sar = av_guess_sample_aspect_ratio(fmt_ctx, stream, NULL);
         if (sar.num) {