ffmpeg | branch: master | James Almer <jamr...@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 <jamr...@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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to