[FFmpeg-cvslog] avcodec/audiotoolboxnec: set set keyframe flag in output packets

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


ffmpeg | branch: release/7.1 | James Almer <jamrial at gmail.com> | Sun Nov 24 20:24:40 2024 -0300| [f7d59ab17a751105c399cc64beb66d5c7686dcab] | 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>
(cherry picked from commit 495c891e3998bdee7e7680390d9aea2efb5c9a5d)

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

 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