PR #24030 opened by Jamaika1 URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24030 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24030.patch
https://github.com/AcademySoftwareFoundation/openapv/pull/235 Positive test: ffmpeg_avx2.exe -v verbose -i "input.mp4" -y -c:v liboapv -preset medium -qp 22 -an -vf "scale=1920:1080,format=yuv422p12le" -frames:v 1000 output_oapv.mkv >From aca7014e4bb14241f6e0b58fa87783f7dde93026 Mon Sep 17 00:00:00 2001 From: Jamaika1 <[email protected]> Date: Thu, 6 Aug 2026 14:30:13 +0000 Subject: [PATCH] libavcodec/liboapvenc: add per-instance custom memory allocator interface https://github.com/AcademySoftwareFoundation/openapv/pull/235 Positive test: ffmpeg_avx2.exe -v verbose -i "input.mp4" -y -c:v liboapv -preset medium -qp 22 -an -vf "scale=1920:1080,format=yuv422p12le" -frames:v 1000 output_oapv.mkv --- libavcodec/liboapvenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/liboapvenc.c b/libavcodec/liboapvenc.c index 22a8ac4890..2ea3573a34 100644 --- a/libavcodec/liboapvenc.c +++ b/libavcodec/liboapvenc.c @@ -63,6 +63,7 @@ typedef struct ApvEncContext { oapve_t id; // APV instance identifier oapvm_t mid; oapve_cdesc_t cdsc; // coding parameters i.e profile, width & height of input frame, num of therads, frame rate ... + oapvm_cdesc_t mdesc; oapv_bitb_t bitb; // bitstream buffer (output) oapve_stat_t stat; // encoding status (output) @@ -509,7 +510,8 @@ static av_cold int liboapve_init(AVCodecContext *avctx) } /* create metadata handler */ - apv->mid = oapvm_create(&ret); + memset(&apv->mdesc, 0, sizeof(oapvm_cdesc_t)); + apv->mid = oapvm_create(&apv->mdesc, &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]
