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 B38E04AE13 for ; Thu, 26 Feb 2026 08:36:40 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'+M/OJ++iFIIedbJrd/3lHEhQsncOamLjZFRSBznlzV0=', expected b'/ilXzk5uE4u1EsPOWg8qRvbJU+f7urDlwoUC7glGqhk=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1772094980; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=+M/OJ++iFIIedbJrd/3lHEhQsncOamLjZFRSBznlzV0=; b=YhlghcJ90BSI2iz6kUCpP0X69OtlUmNGK7bhPtratCqgIRybg+Z92jhwKLt7C76HBFiVi 9yY8WtAWE+5ESAliotN6Dcvhp0DyHNw/Vyj3Dw6rz6ffRcAsCoa7+tbW0VgaBFVIziEzw4C lc09k4UOFK+2vngmqAq+ifUnMgkyyGVAxMhGKcBm/vNdEi0CI4E0YZE8EEYi/3Yfquh2rO8 hSJz2FIxZlY8JiMZOxEai16XTh81jAoPsfvgWrQKQ8DfB7ubVJPEcJwpEDhZYlKQjt9yha4 quZBREoillVnpZvFUsElEudirV2xOmWyyaC+z8rRwibKsLQnVJ8FPs+bLDjg== Received: from [172.18.0.3] (unknown [172.18.0.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id E84716912A9; Thu, 26 Feb 2026 10:36:20 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1772094969; b=PUHApPgfvdA4YbxE5YraydyoYbGV1BGkUiJ5ohPH3BRi2kCsJZNU7jnU6kME5ZAkKMpos Hunll2Ia/eADYrDHs8x8A6JCJNauts0eAYqQjv3CPjC7N2nraH3jRUKf13v/mGNQe+bD1bl rBvX4gEuxQnP2/SLiavoJlk7J78iYjBCJ7r+8I0yOp1OD5PIAqjATIZBtQ1BvGh/gb+fGOL PdJ7+XecQQfHT9LjhVa5ZHksWjDDkMfR+qzbfYbTFRijpm0m9KWhxwhDphS2giLX+lI/rOF kB9m0mVhSvyb2eJVCZ/53g6Qx5U7+jz4/fZHwHC/LapYKW66hqLwP6d69Qug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1772094969; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=R0NiLe+sEcXAKDqQLa0IPnlcDFfhIR1D5Na7N3WK434=; b=jtBQcSj1npLfTcoQoZRaSeDs2Ql5gzVqh53vWC9KV8W9sZ3JImPyyMhqeDvxkyQdv0VZm AJZ+dYlk7acK3Og3GxVgsrNH2uGsf5wnxAPv8+PVxX+7p0k5GYkTn/WQX6DmQjB9PGbEWFJ kp2ecViOvdONnbLFxxiXIn+I8hClPtVE1AzkSfV+vy3n4I9kMVvLtE/1W3NJC0/69GWFH5P FlmmjT9zk/nY+jKk2yGGO7L6fw0e164M3JzwZHXpzW9oZeP9SUwKoGZyEIdj/xjWaS+CH9o 4TvQkcGZVxmUasI50HtIbDTJRyhaOLU6o/WrxbzPFGpYxocr5Rw7/m7ez/kg== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1772094960; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=/ilXzk5uE4u1EsPOWg8qRvbJU+f7urDlwoUC7glGqhk=; b=4G1qI+UkpwveK8s3ZEy+vWIBHNVFTmU5/xJUMFPuwJA0vYGZL8K7RLA8Xb++6CtW+M3tl 74K76QZL4AmXkvBgx0zdfwqSUC47wuWNNK8douBbbs+iHY/L0NYgpFuLHHym8wtXnqq52Oa W5UIrFlx8T6B3kuOb85cXyhKyjbiMPVm6uYiaRaqQm1mxlEqelNX6nA/RoR9CChSfe20ZHF e5JZcM953oVx//symT3chfZdhGukl/bp5/Nt8ES0Mz5mD93hu6Tzi9U+U3Lu/Ru5q5QDyHH /EeCR1ypXkqYPfGFn5EIA1fWZfGlHut0TbcX6iM0Ey6pxH6L45HCe1mro2yA== MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Thu, 26 Feb 2026 08:36:00 -0000 Message-ID: <177209496069.25.12639174957327334382@29965ddac10e> Message-ID-Hash: DNGVP4X2VPQ54LHRUMXC3YWDJ4L2CQ6Y X-Message-ID-Hash: DNGVP4X2VPQ54LHRUMXC3YWDJ4L2CQ6Y X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PR] avcodec/kbdwin, avutil/fixed_dsp: resolve compilation warnings (PR #22290) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: nico-zs via ffmpeg-devel Cc: nico-zs Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #22290 opened by nico-zs URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22290 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22290.patch Fix implicit type conversion warnings in kbdwin and fixed_dsp by using proper types for function parameters and return values. Signed-off-by: zengshuang >>From 32486a55dc96e1e177ddc58f2f4971785f138554 Mon Sep 17 00:00:00 2001 From: zengshuang Date: Thu, 26 Feb 2026 15:54:20 +0800 Subject: [PATCH] avcodec/kbdwin, avutil/fixed_dsp: resolve compilation warnings Fix implicit type conversion warnings in kbdwin and fixed_dsp by using proper types for function parameters and return values. Signed-off-by: zengshuang --- libavcodec/kbdwin.c | 2 +- libavcodec/kbdwin.h | 2 +- libavutil/fixed_dsp.c | 8 ++++---- libavutil/fixed_dsp.h | 6 +++++- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/libavcodec/kbdwin.c b/libavcodec/kbdwin.c index cb73ceb160..9333426975 100644 --- a/libavcodec/kbdwin.c +++ b/libavcodec/kbdwin.c @@ -56,7 +56,7 @@ av_cold void ff_kbd_window_init(float *window, float alpha, int n) kbd_window_init(window, NULL, alpha, n); } -av_cold void ff_kbd_window_init_fixed(int32_t *window, float alpha, int n) +av_cold void ff_kbd_window_init_fixed(int *window, float alpha, int n) { kbd_window_init(NULL, window, alpha, n); } diff --git a/libavcodec/kbdwin.h b/libavcodec/kbdwin.h index 4185c4206f..f52e7fc572 100644 --- a/libavcodec/kbdwin.h +++ b/libavcodec/kbdwin.h @@ -33,6 +33,6 @@ * @param n size of half window, max FF_KBD_WINDOW_MAX */ void ff_kbd_window_init(float *window, float alpha, int n); -void ff_kbd_window_init_fixed(int32_t *window, float alpha, int n); +void ff_kbd_window_init_fixed(int *window, float alpha, int n); #endif /* AVCODEC_KBDWIN_H */ diff --git a/libavutil/fixed_dsp.c b/libavutil/fixed_dsp.c index 74cefdb145..ee10ea2af6 100644 --- a/libavutil/fixed_dsp.c +++ b/libavutil/fixed_dsp.c @@ -92,11 +92,11 @@ static void vector_fmul_window_scaled_c(int16_t *dst, const int32_t *src0, } } -static void vector_fmul_window_c(int32_t *dst, const int32_t *src0, - const int32_t *src1, const int32_t *win, - int len) +static void vector_fmul_window_c(int *dst, const int *src0, + const int *src1, const int *win, + int len) { - int32_t s0, s1, wi, wj, i, j; + int s0, s1, wi, wj, i, j; dst += len; win += len; diff --git a/libavutil/fixed_dsp.h b/libavutil/fixed_dsp.h index 9b566af675..ddb8d92fcd 100644 --- a/libavutil/fixed_dsp.h +++ b/libavutil/fixed_dsp.h @@ -83,6 +83,10 @@ typedef struct AVFixedDSPContext { * Used primarily by MDCT-based audio codecs. * Source and destination vectors must overlap exactly or not at all. * + * NOTE: On some toolchains used in this project, int32_t may map to long int, + * while codec fixed-point paths use INTFLOAT == int. Keep this API aligned + * with actual implementation/storage types to avoid pointer-type mismatches. + * * @param dst result vector * constraints: 32-byte aligned * @param src0 first source vector @@ -94,7 +98,7 @@ typedef struct AVFixedDSPContext { * @param len length of vector * constraints: multiple of 4 */ - void (*vector_fmul_window)(int32_t *dst, const int32_t *src0, const int32_t *src1, const int32_t *win, int len); + void (*vector_fmul_window)(int *dst, const int *src0, const int *src1, const int *win, int len); /** * Fixed-point multiplication that calculates the entry wise product of two -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org