From 6b6786e5e9f574331eecd439e4794b4d795186cb Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 10 Mar 2025 03:48:47 +0100 Subject: [PATCH 2/3] avcodec/allcodecs: Don't wrap supported_framerates Only two encoders (the native MPEG-1/2 ones) provide supported_framerates and they don't implement the get_supported_config callback. It is highly unlikely that any codec will set supported_framerates dynamically at all, so remove the code querying for frame rates. Signed-off-by: Andreas Rheinhardt --- libavcodec/allcodecs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 3be33f5cc4..8605793c8f 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -941,10 +941,6 @@ FF_DISABLE_DEPRECATION_WARNINGS AV_CODEC_CONFIG_PIX_FORMAT, 0, (const void **) &codec->p.pix_fmts, &dummy); - codec->get_supported_config(NULL, &codec->p, - AV_CODEC_CONFIG_FRAME_RATE, 0, - (const void **) &codec->p.supported_framerates, - &dummy); break; case AVMEDIA_TYPE_AUDIO: codec->get_supported_config(NULL, &codec->p, -- 2.45.2