From ffdace5ad4736ea720f306392ce6bdcb2aea823a Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 16 Nov 2024 20:29:38 -0300 Subject: [PATCH] avcodec/aacenc: set keyframe flag 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/aacenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 88037c7f87..3ff61f788b 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -1177,6 +1177,8 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, ff_af_queue_remove(&s->afq, avctx->frame_size, &avpkt->pts, &avpkt->duration); + avpkt->flags |= AV_PKT_FLAG_KEY; + *got_packet_ptr = 1; return 0; }