From 99f87251e0cc6bf8f2a7c21e1e72e6144e5a6701 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 17 Nov 2024 16:03:18 -0300 Subject: [PATCH] avcodec/libfdk-aacenc: set keyframe in output packets Don't depend on the generic code setting this. This is in preparation for a following change. Signed-off-by: James Almer --- libavcodec/libfdk-aacenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/libfdk-aacenc.c b/libavcodec/libfdk-aacenc.c index cc0ae0d8da..4dcfb25db7 100644 --- a/libavcodec/libfdk-aacenc.c +++ b/libavcodec/libfdk-aacenc.c @@ -549,6 +549,7 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, } avpkt->size = out_args.numOutBytes; + avpkt->flags |= AV_PKT_FLAG_KEY; *got_packet_ptr = 1; return 0; }