[FFmpeg-cvslog] avcodec/aacenc: set keyframe flag in output packets
James Almer
git at videolan.org
Sun Dec 1 18:47:48 EET 2024
ffmpeg | branch: release/7.1 | James Almer <jamrial at gmail.com> | Sat Nov 16 20:29:38 2024 -0300| [302f1b3882536dcbd1185778a474bc5900a57153] | committer: James Almer
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 <jamrial at gmail.com>
(cherry picked from commit ffdace5ad4736ea720f306392ce6bdcb2aea823a)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=302f1b3882536dcbd1185778a474bc5900a57153
---
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;
}
More information about the ffmpeg-cvslog
mailing list