diff mbox series

[FFmpeg-devel,1/5] ffprobe: remove an unnecessary deprecation guard

Message ID 20210208112828.27113-1-anton@khirnov.net
State Accepted
Commit 65b08aa19c26dd3d310e1610bd9a2ace8756ce95
Headers show
Series [FFmpeg-devel,1/5] ffprobe: remove an unnecessary deprecation guard | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anton Khirnov Feb. 8, 2021, 11:28 a.m. UTC
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 | 2 --
 1 file changed, 2 deletions(-)

Comments

Paul B Mahol Feb. 8, 2021, 11:39 a.m. UTC | #1
lgtm
diff mbox series

Patch

diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
index 3453aa09ff..4e5beb5710 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -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) {