diff mbox series

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

Message ID 20220214224156.39862-3-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/6] ffmpeg: flush delayed frames in codec copy scenarios | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

James Almer Feb. 14, 2022, 10:41 p.m. UTC
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@gmail.com>
---
 libavcodec/bsf.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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 {