ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | Tue Sep 21 21:34:32 2021 +0200| [db25180e9d0fbb500459d997a05f5752768f604d] | committer: Andreas Rheinhardt
avcodec/mlpenc: Set AV_PKT_FLAG_KEY manually TrueHD/MLP is one of the audio formats with keyframes. Currently, the generic encoding code just sets the keyframe flag for all returned packets, yet this is wrong for these encoders and will be changed in a future commit. So set the flag here for those packets that ought to have it. Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=db25180e9d0fbb500459d997a05f5752768f604d --- libavcodec/mlpenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c index b2b3297669..1cb02f22a9 100644 --- a/libavcodec/mlpenc.c +++ b/libavcodec/mlpenc.c @@ -2114,6 +2114,7 @@ static int mlp_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, restart_frame = !ctx->frame_index; if (restart_frame) { + avpkt->flags |= AV_PKT_FLAG_KEY; set_major_params(ctx); if (ctx->min_restart_interval != ctx->max_restart_interval) process_major_frame(ctx); _______________________________________________ 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".