From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 3D6C64BC11 for ; Sun, 24 Aug 2025 21:40:37 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id AAE4168AEF7; Mon, 25 Aug 2025 00:40:29 +0300 (EEST) Received: from 0f4167fb2350 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id D0F8468C6B2 for ; Mon, 25 Aug 2025 00:40:27 +0300 (EEST) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] =?utf-8?q?=5BPATCH=5D_configure=3A_bump_LCEVCdec_?= =?utf-8?q?minimum_required_version_to_4=2E0=2E0_=28PR_=2320331=29?= X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: James Almer via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: James Almer Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Message-Id: <20250824214029.AAE4168AEF7@ffbox0-bg.ffmpeg.org> Date: Mon, 25 Aug 2025 00:40:29 +0300 (EEST) Archived-At: List-Archive: List-Post: PR #20331 opened by James Almer (jamrial) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20331 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20331.patch The project introduced API breaking changes to some of their public functions, and given the library is relatively new, just bump the minimum supported version instead of adding ifdeffery to the source files. >From 72c25e473c066da10f24879bde969ea9c6c88d58 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 24 Aug 2025 18:39:10 -0300 Subject: [PATCH] configure: bump LCEVCdec minimum required version to 4.0.0 The project introduced API breaking changes to some of their public functions, and given the library is relatively new, just bump the minimum supported version instead of adding ifdeffery to the source files. Signed-off-by: James Almer --- configure | 2 +- libavcodec/lcevcdec.c | 4 ++-- libavfilter/vf_lcevc.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index aa41b2a7b3..150b7e7927 100755 --- a/configure +++ b/configure @@ -7065,7 +7065,7 @@ enabled libklvanc && require libklvanc libklvanc/vanc.h klvanc_context_c enabled libkvazaar && require_pkg_config libkvazaar "kvazaar >= 2.0.0" kvazaar.h kvz_api_get enabled liblc3 && require_pkg_config liblc3 "lc3 >= 1.1.0" lc3.h lc3_hr_setup_encoder enabled liblensfun && require_pkg_config liblensfun lensfun lensfun.h lf_db_create -enabled liblcevc_dec && require_pkg_config liblcevc_dec "lcevc_dec >= 2.0.0" "LCEVC/lcevc_dec.h" LCEVC_CreateDecoder +enabled liblcevc_dec && require_pkg_config liblcevc_dec "lcevc_dec >= 4.0.0" "LCEVC/lcevc_dec.h" LCEVC_CreateDecoder if enabled libmfx && enabled libvpl; then die "ERROR: can not use libmfx and libvpl together" diff --git a/libavcodec/lcevcdec.c b/libavcodec/lcevcdec.c index 102f6f32e9..c2d1b11383 100644 --- a/libavcodec/lcevcdec.c +++ b/libavcodec/lcevcdec.c @@ -141,7 +141,7 @@ static int lcevc_send_frame(void *logctx, FFLCEVCFrame *frame_ctx, const AVFrame if (!sd) return 1; - res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, in->pts, 0, sd->data, sd->size); + res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, in->pts, sd->data, sd->size); if (res != LCEVC_Success) return AVERROR_EXTERNAL; @@ -149,7 +149,7 @@ static int lcevc_send_frame(void *logctx, FFLCEVCFrame *frame_ctx, const AVFrame if (ret < 0) return ret; - res = LCEVC_SendDecoderBase(lcevc->decoder, in->pts, 0, picture, -1, NULL); + res = LCEVC_SendDecoderBase(lcevc->decoder, in->pts, picture, -1, NULL); if (res != LCEVC_Success) return AVERROR_EXTERNAL; diff --git a/libavfilter/vf_lcevc.c b/libavfilter/vf_lcevc.c index 8ac2b212c3..60fab41fcb 100644 --- a/libavfilter/vf_lcevc.c +++ b/libavfilter/vf_lcevc.c @@ -139,7 +139,7 @@ static int send_frame(AVFilterLink *inlink, AVFrame *in) return ret; if (sd) { - res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, in->pts, 0, sd->data, sd->size); + res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, in->pts, sd->data, sd->size); if (res == LCEVC_Again) return AVERROR(EAGAIN); else if (res != LCEVC_Success) { @@ -148,7 +148,7 @@ static int send_frame(AVFilterLink *inlink, AVFrame *in) } } - res = LCEVC_SendDecoderBase(lcevc->decoder, in->pts, 0, picture, -1, in); + res = LCEVC_SendDecoderBase(lcevc->decoder, in->pts, picture, -1, in); if (res != LCEVC_Success) { av_log(ctx, AV_LOG_ERROR, "LCEVC_SendDecoderBase failed\n"); LCEVC_FreePicture(lcevc->decoder, picture); -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".