[FFmpeg-cvslog] avcodec/audiotoolboxdec: set set keyframe flag in output frames

James Almer git at videolan.org
Sun Dec 1 18:47:50 EET 2024


ffmpeg | branch: release/7.1 | James Almer <jamrial at gmail.com> | Sun Nov 24 20:24:27 2024 -0300| [07a92c1a640de41422fd2581e996c26976b03a6a] | committer: James Almer

avcodec/audiotoolboxdec: set set keyframe flag in output frames

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 d3dd14bf5b4a7e5ead890b83fc905add9b261cf7)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=07a92c1a640de41422fd2581e996c26976b03a6a
---

 libavcodec/audiotoolboxdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index 0f7ce8e4eb..08203c5310 100644
--- a/libavcodec/audiotoolboxdec.c
+++ b/libavcodec/audiotoolboxdec.c
@@ -542,6 +542,8 @@ static int ffat_decode(AVCodecContext *avctx, AVFrame *frame,
 
     frame->nb_samples = avctx->frame_size;
 
+    frame->flags |= AV_FRAME_FLAG_KEY;
+
     out_buffers.mBuffers[0].mData = at->decoded_data;
 
     ret = AudioConverterFillComplexBuffer(at->converter, ffat_decode_callback, avctx,



More information about the ffmpeg-cvslog mailing list