aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/buffersrc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-04-12 19:35:56 -0300
committerJames Almer <jamrial@gmail.com>2023-05-04 19:19:13 -0300
commitaf8db9106c27a1ef11ec69ecbbe7a57462c14367 (patch)
tree8b944cf3e6f6f786106e266b15f5addb5c3aeb5f /libavfilter/buffersrc.c
parentdc7bd7c5a5ad5ea800dfb63cc5dd15670d065527 (diff)
downloadffmpeg-af8db9106c27a1ef11ec69ecbbe7a57462c14367.tar.gz
avfilter: use the new AVFrame key_frame flag in all filters
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/buffersrc.c')
-rw-r--r--libavfilter/buffersrc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 1d2f357bbc..8d5a08995b 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -256,6 +256,9 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
#endif
+ if (copy->key_frame)
+ copy->flags |= AV_FRAME_FLAG_KEY;
+
ret = ff_filter_frame(ctx->outputs[0], copy);
if (ret < 0)
return ret;