And a first flag to signal that the bsf buffers packets and needs to
be drained

Signed-off-by: James Almer <jamr...@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

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

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

Reply via email to