[FFmpeg-devel] [PATCH 2/6] avcodec/bsf: add a capabilities field to AVBitStreamFilter
James Almer
jamrial at gmail.com
Tue Feb 15 00:41:52 EET 2022
And a first flag to signal that the bsf buffers packets and needs to
be drained
Signed-off-by: James Almer <jamrial at gmail.com>
---
Missing APIChanges entry and version bump.
libavcodec/bsf.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/libavcodec/bsf.h b/libavcodec/bsf.h
index 8c5355d186..798c6470ee 100644
--- a/libavcodec/bsf.h
+++ b/libavcodec/bsf.h
@@ -87,6 +87,12 @@ typedef struct AVBSFContext {
AVRational time_base_out;
} AVBSFContext;
+/**
+ * The bitstream filter requires flushing with NULL input at the end in order
+ * to drain all buffered packets and give the complete and correct output.
+ */
+#define AV_BSF_CAP_DELAY (1 << 0)
+
typedef struct AVBitStreamFilter {
const char *name;
@@ -108,6 +114,12 @@ typedef struct AVBitStreamFilter {
*/
const AVClass *priv_class;
+ /**
+ * Filter capabilities.
+ * see AV_BSF_CAP_*
+ */
+ int capabilities;
+
/*****************************************************************
* No fields below this line are part of the public API. They
* may not be used outside of libavcodec and can be changed and
--
2.35.1
More information about the ffmpeg-devel
mailing list