@@ -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
And a first flag to signal that the bsf buffers packets and needs to be drained Signed-off-by: James Almer <jamrial@gmail.com> --- Missing APIChanges entry and version bump. libavcodec/bsf.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)