diff mbox series

[FFmpeg-devel,3/5] ffprobe: drop code accessing deprecated AVStream.codec

Message ID 20210208112828.27113-3-anton@khirnov.net
State Accepted
Commit 04f49645a519233f3638104e0df5215758652fcb
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
---
 fftools/ffprobe.c | 5 -----
 1 file changed, 5 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 f7d042525e..83c036dd3f 100644
--- a/fftools/ffprobe.c
+++ b/fftools/ffprobe.c
@@ -3050,11 +3050,6 @@  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
-            ist->dec_ctx->properties = stream->codec->properties;
-            ist->dec_ctx->coded_width = stream->codec->coded_width;
-            ist->dec_ctx->coded_height = stream->codec->coded_height;
-#endif
 
             if (avcodec_open2(ist->dec_ctx, codec, &opts) < 0) {
                 av_log(NULL, AV_LOG_WARNING, "Could not open codec for input stream %d\n",