[FFmpeg-cvslog] avcodec/audiotoolboxdec: set set keyframe flag in output frames
James Almer
git at videolan.org
Mon Nov 25 01:38:35 EET 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Nov 24 20:24:27 2024 -0300| [d3dd14bf5b4a7e5ead890b83fc905add9b261cf7] | 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>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d3dd14bf5b4a7e5ead890b83fc905add9b261cf7
---
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