[PR] libavcodec/liboapvenc: add per-instance custom memory allocator interface (PR #24028)

Jamaika1 via ffmpeg-devel <[email protected]>
Newsgroups gmane.comp.video.ffmpeg.devel
Message-ID <178600982229.59.4002013625660490171@29965ddac10e>
PR #24028 opened by Jamaika1
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24028
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24028.patch

https://github.com/AcademySoftwareFoundation/openapv/pull/235


>From 9e955e35a80f41b29377d00ef5c65b7e2a593cee Mon Sep 17 00:00:00 2001
From: Jamaika1 <[email protected]>
Date: Thu, 6 Aug 2026 09:49:03 +0000
Subject: [PATCH] libavcodec/liboapvenc: add per-instance custom memory
 allocator interface

https://github.com/AcademySoftwareFoundation/openapv/pull/235
---
 libavcodec/liboapvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/liboapvenc.c b/libavcodec/liboapvenc.c
index 22a8ac4890..8b01560961 100644
--- a/libavcodec/liboapvenc.c
+++ b/libavcodec/liboapvenc.c
@@ -509,7 +509,7 @@ static av_cold int liboapve_init(AVCodecContext *avctx)
     }
 
     /* create metadata handler */
-    apv->mid = oapvm_create(&ret);
+    apv->mid = oapvm_create(cdsc, &ret);
     if (apv->mid == NULL || OAPV_FAILED(ret)) {
         av_log(avctx, AV_LOG_ERROR, "cannot create OAPV metadata handler\n");
         return AVERROR_EXTERNAL;
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.