* update tinycompress to 1.2.11-2
This commit is contained in:
parent
f892623367
commit
7fa6db39bc
@ -3,7 +3,7 @@
|
||||
|
||||
pkgname=tinycompress
|
||||
pkgver=1.2.11
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="ALSA compressed device interface"
|
||||
url="https://github.com/alsa-project/tinycompress"
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
@ -17,8 +17,10 @@ optdepends=("ffmpeg: fcplay utility")
|
||||
provides=(libtinycompress.so)
|
||||
options=(debug)
|
||||
_commit=e98e500873c9c4fdd752d1c85b6116da426a8a70 # tags/v1.2.11^0
|
||||
source=("git+$url#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
source=("git+$url#commit=$_commit"
|
||||
ffmpeg-7.patch)
|
||||
b2sums=('e23df6e28228fc059613f182bf6d5c5edbd95932ccc6d36e7aefadaa7474f59a55dccb841d24c25453d416cbd31ffb3a1d651061b3441c21d813e7127fd451db'
|
||||
'83b55cabf2a0d2fe3f935c085a959f237fac0c9c1f652265a5132789b1a71c7e6ab740043721223480a62e99c231e4fa9c81fe91d68013f17fbb08b5d9741448')
|
||||
|
||||
pkgver() {
|
||||
cd tinycompress
|
||||
@ -29,6 +31,8 @@ prepare() {
|
||||
mkdir -p build
|
||||
|
||||
cd tinycompress
|
||||
|
||||
patch -p1 -i ../ffmpeg-7.patch # Fix build with ffmpeg 7
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
|
24
tinycompress/ffmpeg-7.patch
Normal file
24
tinycompress/ffmpeg-7.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff --git a/src/utils-lgpl/fcplay.c b/src/utils-lgpl/fcplay.c
|
||||
index aff0915..eac0712 100644
|
||||
--- a/src/utils-lgpl/fcplay.c
|
||||
+++ b/src/utils-lgpl/fcplay.c
|
||||
@@ -240,8 +240,8 @@ static int parse_file(char *file, struct snd_codec *codec)
|
||||
if (!filled) {
|
||||
/* we fill params from 1st audio stream */
|
||||
codec->id = get_codec_id(stream->codecpar->codec_id);
|
||||
- codec->ch_in = stream->codecpar->channels;
|
||||
- codec->ch_out = stream->codecpar->channels;
|
||||
+ codec->ch_in = stream->codecpar->ch_layout.nb_channels;
|
||||
+ codec->ch_out = stream->codecpar->ch_layout.nb_channels;
|
||||
codec->sample_rate = stream->codecpar->sample_rate;
|
||||
codec->bit_rate = ctx->bit_rate;
|
||||
codec->profile = stream->codecpar->profile;
|
||||
@@ -273,7 +273,7 @@ static int parse_file(char *file, struct snd_codec *codec)
|
||||
fprintf(stderr, " Bits coded: %d", stream->codecpar->bits_per_coded_sample);
|
||||
fprintf(stderr, " Profile: %d", stream->codecpar->profile);
|
||||
fprintf(stderr, " Codec tag: %d", stream->codecpar->codec_tag);
|
||||
- fprintf(stderr, " Channels: %d", stream->codecpar->channels);
|
||||
+ fprintf(stderr, " Channels: %d", stream->codecpar->ch_layout.nb_channels);
|
||||
fprintf(stderr, " Sample rate: %d", stream->codecpar->sample_rate);
|
||||
fprintf(stderr, " block_align: %d", stream->codecpar->block_align);
|
||||
if (codec->id == SND_AUDIOCODEC_FLAC) {
|
Loading…
x
Reference in New Issue
Block a user