[FFmpeg-devel] [PATCH 3/6] avcodec/bsf: set delay capability on the list filter

James Almer jamrial at gmail.com
Tue Feb 15 00:41:53 EET 2022


AVBitStreamFilter structures are const, so we can't set its capabilities based
on the filters added to the list.
Set the delay cap to ensure correct behavior if any bsf in the list sets it.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/bsf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index 8ba021cb47..a784aaaa95 100644
--- a/libavcodec/bsf.c
+++ b/libavcodec/bsf.c
@@ -406,6 +406,7 @@ static const AVBitStreamFilter list_bsf = {
         .filter         = bsf_list_filter,
         .flush          = bsf_list_flush,
         .close          = bsf_list_close,
+        .capabilities   = AV_BSF_CAP_DELAY,
 };
 
 struct AVBSFList {
-- 
2.35.1



More information about the ffmpeg-devel mailing list