ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Mon Mar 10 03:48:47 2025 +0100| [ed1b76cdb79cf0f6023010a151712350b8b81f37] | 
committer: Andreas Rheinhardt

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.rheinha...@outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed1b76cdb79cf0f6023010a151712350b8b81f37
---

 libavcodec/allcodecs.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
index 34a94ae93d..9820455b38 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,

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to