]> git.sesse.net Git - ffmpeg/commitdiff
ffprobe: drop code accessing deprecated AVStream.codec
authorAnton Khirnov <anton@khirnov.net>
Mon, 8 Feb 2021 11:05:55 +0000 (12:05 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 22 Feb 2021 10:14:17 +0000 (11:14 +0100)
fftools/ffprobe.c

index f7d042525e53712634fef68ec5a170be49054541..83c036dd3f3fc953a2b29a7b3d1add0d8fba810c 100644 (file)
@@ -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",