Commit 91c4a5258c for ffmpeg
commit 91c4a5258cc1a2479286fca6e5941cdf3a15f0e2
Author: zzhx2006 <zzhx2006@outlook.com>
Date: Wed Sep 30 22:54:40 2026 +0800
avcodec/libaomenc: Remove duplicate function call
aom_img_remove_metadata has already been called at the start of aom_encode, so the duplicate call is removed.
diff --git a/libavcodec/libaomenc.c b/libavcodec/libaomenc.c
index 3042d15f38..fe68f1f953 100644
--- a/libavcodec/libaomenc.c
+++ b/libavcodec/libaomenc.c
@@ -1366,7 +1366,6 @@ static int aom_encode(AVCodecContext *avctx, AVPacket *pkt,
break;
}
- aom_img_remove_metadata(rawimg);
sd = av_frame_get_side_data(frame, AV_FRAME_DATA_DOVI_METADATA);
if (ctx->dovi.cfg.dv_profile && sd) {
const AVDOVIMetadata *metadata = (const AVDOVIMetadata *)sd->data;