mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
shine: fix compile bug in l3mdct
- Project has different function declaration in header and source. - Reformat patches for `git am` Fixes: https://github.com/openwrt/packages/issues/27957 Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
This commit is contained in:
committed by
Hannu Nyman
parent
b3ab1798c5
commit
5cfabbfd0e
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=shine
|
PKG_NAME:=shine
|
||||||
PKG_VERSION:=3.1.1
|
PKG_VERSION:=3.1.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/toots/shine/releases/download/$(PKG_VERSION)/
|
PKG_SOURCE_URL:=https://github.com/toots/shine/releases/download/$(PKG_VERSION)/
|
||||||
|
|||||||
21
sound/shine/patches/0001-fix-mdct-init-declaration.patch
Normal file
21
sound/shine/patches/0001-fix-mdct-init-declaration.patch
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
From 905d4367cf57860b7f86e2d2f6fed5529c94ee98 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vladimir Ermakov <vooon341@gmail.com>
|
||||||
|
Date: Tue, 25 Nov 2025 16:40:09 +0100
|
||||||
|
Subject: [PATCH] fix mdct init declaration
|
||||||
|
|
||||||
|
Signed-off-by: Vladimir Ermakov <vooon341@gmail.com>
|
||||||
|
---
|
||||||
|
src/lib/l3mdct.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/src/lib/l3mdct.h
|
||||||
|
+++ b/src/lib/l3mdct.h
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
#ifndef shine_MDCT_H
|
||||||
|
#define shine_MDCT_H
|
||||||
|
|
||||||
|
-void shine_mdct_initialise();
|
||||||
|
+void shine_mdct_initialise(shine_global_config *config);
|
||||||
|
void shine_mdct_sub(shine_global_config *config, int stride);
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
--- a/src/bin/wave.c
|
|
||||||
+++ b/src/bin/wave.c
|
|
||||||
@@ -168,7 +168,7 @@ unsigned char wave_open(const char *fnam
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef SHINE_BIG_ENDIAN
|
|
||||||
-#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
|
|
||||||
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8))
|
|
||||||
#define bswap_16(x) __builtin_bswap16(x)
|
|
||||||
#else
|
|
||||||
#define bswap_16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
|
|
||||||
Reference in New Issue
Block a user