summaryrefslogtreecommitdiff
path: root/libavcodec/encode.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-18 00:02:43 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-21 00:24:44 +0100
commit1d66a122df9fd5d8400b05c74462d0082990fc01 (patch)
tree692f46d71fe10e9e0c872c201ea4fb1db1e9229c /libavcodec/encode.h
parentb6b33f7edd949a013ee137afa6c6b5e340ad34cc (diff)
avcodec/avcodec: Deprecate AV_INPUT_BUFFER_MIN_SIZE
It used to be used with preallocated packet buffers with the old encode API, but said API is no more and therefore there is no reason for this to be public any more. So deprecate it and use an internal replacement for the encoders using it as an upper bound for the size of their headers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/encode.h')
-rw-r--r--libavcodec/encode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/encode.h b/libavcodec/encode.h
index e019cd7702..85331e04b7 100644
--- a/libavcodec/encode.h
+++ b/libavcodec/encode.h
@@ -27,6 +27,12 @@
#include "packet.h"
/**
+ * Used by some encoders as upper bound for the length of headers.
+ * TODO: Use proper codec-specific upper bounds.
+ */
+#define FF_INPUT_BUFFER_MIN_SIZE 16384
+
+/**
* Called by encoders to get the next frame for encoding.
*
* @param frame An empty frame to be filled with data.