[FFmpeg-cvslog] avcodec/audiotoolboxnec: set set keyframe flag in output packets
James Almer
git at videolan.org
Mon Nov 25 01:38:37 EET 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Nov 24 20:24:40 2024 -0300| [495c891e3998bdee7e7680390d9aea2efb5c9a5d] | committer: James Almer
avcodec/audiotoolboxnec: set 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>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=495c891e3998bdee7e7680390d9aea2efb5c9a5d
---
libavcodec/audiotoolboxenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c
index ad2b863bb9..908b56055f 100644
--- a/libavcodec/audiotoolboxenc.c
+++ b/libavcodec/audiotoolboxenc.c
@@ -576,6 +576,7 @@ static int ffat_encode(AVCodecContext *avctx, AVPacket *avpkt,
avctx->frame_size,
&avpkt->pts,
&avpkt->duration);
+ avpkt->flags |= AV_PKT_FLAG_KEY;
} else if (ret && ret != 1) {
av_log(avctx, AV_LOG_ERROR, "Encode error: %i\n", ret);
return AVERROR_EXTERNAL;
More information about the ffmpeg-cvslog
mailing list