1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

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 <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-03-10 03:48:47 +01:00
parent bfbceb7d55
commit ed1b76cdb7

View File

@ -941,10 +941,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
AV_CODEC_CONFIG_PIX_FORMAT, 0, AV_CODEC_CONFIG_PIX_FORMAT, 0,
(const void **) &codec->p.pix_fmts, (const void **) &codec->p.pix_fmts,
&dummy); &dummy);
codec->get_supported_config(NULL, &codec->p,
AV_CODEC_CONFIG_FRAME_RATE, 0,
(const void **) &codec->p.supported_framerates,
&dummy);
break; break;
case AVMEDIA_TYPE_AUDIO: case AVMEDIA_TYPE_AUDIO:
codec->get_supported_config(NULL, &codec->p, codec->get_supported_config(NULL, &codec->p,