[FFmpeg-devel] [PATCH 08/11] avcodec/aacenc: set key frame flag in output packets

James Almer jamrial at gmail.com
Mon Nov 18 04:04:20 EET 2024


Don't depend on the generic code setting this.
This is in preparation for a following change.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 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;
 }
-- 
2.47.0



More information about the ffmpeg-devel mailing list