diff options
author | James Almer <jamrial@gmail.com> | 2023-04-12 19:35:56 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-05-04 19:19:13 -0300 |
commit | af8db9106c27a1ef11ec69ecbbe7a57462c14367 (patch) | |
tree | 8b944cf3e6f6f786106e266b15f5addb5c3aeb5f /libavfilter/buffersrc.c | |
parent | dc7bd7c5a5ad5ea800dfb63cc5dd15670d065527 (diff) | |
download | ffmpeg-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.c | 3 |
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; |