This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 39ecc8998853fc2d5fb13f13b700a5649da6bdfb
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Mar 24 18:14:13 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Fri Apr 10 15:12:18 2026 +0200

    avfilter/framepool: nuke ff_frame_pool_get_*_config
    
    This helper is of dubious utility - it was only used to reinitialize the
    frame pools, which is better handled by `ff_frame_pool_reinit()`, and at
    present only serves to make extending the API harder.
    
    Users who really need to randomly query the state of the frame pool can
    already keep track of the values they set.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavfilter/framepool.c | 38 --------------------------------------
 libavfilter/framepool.h | 31 -------------------------------
 2 files changed, 69 deletions(-)

diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index 88cee7f676..049388d1fe 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -150,44 +150,6 @@ fail:
     return NULL;
 }
 
-int ff_frame_pool_get_video_config(FFFramePool *pool,
-                                   int *width,
-                                   int *height,
-                                   enum AVPixelFormat *format,
-                                   int *align)
-{
-    if (!pool)
-        return AVERROR(EINVAL);
-
-    av_assert0(pool->type == AVMEDIA_TYPE_VIDEO);
-
-    *width = pool->width;
-    *height = pool->height;
-    *format = pool->format;
-    *align = pool->align;
-
-    return 0;
-}
-
-int ff_frame_pool_get_audio_config(FFFramePool *pool,
-                                   int *channels,
-                                   int *nb_samples,
-                                   enum AVSampleFormat *format,
-                                   int *align)
-{
-    if (!pool)
-        return AVERROR(EINVAL);
-
-    av_assert0(pool->type == AVMEDIA_TYPE_AUDIO);
-
-    *channels = pool->channels;
-    *nb_samples = pool->nb_samples;
-    *format = pool->format;
-    *align = pool->align;
-
-    return 0;
-}
-
 AVFrame *ff_frame_pool_get(FFFramePool *pool)
 {
     int i;
diff --git a/libavfilter/framepool.h b/libavfilter/framepool.h
index e73ab6cb79..f16c9b9d4f 100644
--- a/libavfilter/framepool.h
+++ b/libavfilter/framepool.h
@@ -106,37 +106,6 @@ int ff_frame_pool_audio_reinit(FFFramePool **pool,
                                enum AVSampleFormat format,
                                int align);
 
-/**
- * Get the video frame pool configuration.
- *
- * @param width width of each frame in this pool
- * @param height height of each frame in this pool
- * @param format format of each frame in this pool
- * @param align buffers alignment of each frame in this pool
- * @return 0 on success, a negative AVERROR otherwise.
- */
-int ff_frame_pool_get_video_config(FFFramePool *pool,
-                                   int *width,
-                                   int *height,
-                                   enum AVPixelFormat *format,
-                                   int *align);
-
-/**
- * Get the audio frame pool configuration.
- *
- * @param channels channels of each frame in this pool
- * @param nb_samples number of samples of each frame in this pool
- * @param format format of each frame in this pool
- * @param align buffers alignment of each frame in this pool
- * @return 0 on success, a negative AVERROR otherwise.
- */
-int ff_frame_pool_get_audio_config(FFFramePool *pool,
-                                   int *channels,
-                                   int *nb_samples,
-                                   enum AVSampleFormat *format,
-                                   int *align);
-
-
 /**
  * Allocate a new AVFrame, reusing old buffers from the pool when available.
  * This function may be called simultaneously from multiple threads.

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to