aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2025-08-27 05:26:03 -0400
committerLeo Izen <leo.izen@gmail.com>2025-08-27 05:26:03 -0400
commita8d6b87a4442c690587db6f44cc7ed72a2de81fc (patch)
treed9e4873bd6e9f33490490a9fd9374cfd8e1bfaa1
parentc2d17c4db88c4ca11d264d15efde66233733ed51 (diff)
downloadffmpeg-a8d6b87a4442c690587db6f44cc7ed72a2de81fc.tar.gz
avcodec/libjxldec: fix leaked EXIF ifd
We're missing a call to av_exif_free here. We leak the internal heap- allocated objects when &ifd goes out of scope. Signed-off-by: Leo Izen <leo.izen@gmail.com>
-rw-r--r--libavcodec/libjxldec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libjxldec.c b/libavcodec/libjxldec.c
index 31f4592d1c..8ce69015bf 100644
--- a/libavcodec/libjxldec.c
+++ b/libavcodec/libjxldec.c
@@ -519,6 +519,7 @@ static int libjxl_receive_frame(AVCodecContext *avctx, AVFrame *frame)
ret = ff_decode_exif_attach_ifd(avctx, ctx->frame, &ifd);
if (ret < 0)
av_log(avctx, AV_LOG_ERROR, "Unable to attach EXIF ifd\n");
+ av_exif_free(&ifd);
}
if (ctx->basic_info.have_animation) {
ctx->frame->pts = av_rescale_q(ctx->accumulated_pts, ctx->anim_timebase, avctx->pkt_timebase);