PR #24896 opened by Zhanhaoxiang Zhang (zzhx2006)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24896
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24896.patch

# Summary of changes

aom_img_remove_metadata has already been called at the start of aom_encode, so 
the duplicate call is removed.


>From 58a5828b713eb55c2393d2e08df63c352db802c8 Mon Sep 17 00:00:00 2001
From: zzhx2006 <[email protected]>
Date: Wed, 30 Sep 2026 22:54:40 +0800
Subject: [PATCH] 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.
---
 libavcodec/libaomenc.c | 1 -
 1 file changed, 1 deletion(-)

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;
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to