Disable ALAC by default due to security issues.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-04-22 18:18:09 +02:00
parent c2d2a52614
commit fe503892ba
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
5 changed files with 14 additions and 8 deletions

View file

@ -18,7 +18,7 @@ steps:
- git clone --depth 1 https://gitlab.xiph.org/xiph/libopusenc.git && cd libopusenc && ./autogen.sh && ./configure --prefix /usr && make && make install && cd ..
- git clone --depth 1 https://git.gammaspectra.live/S.O.N.G/alac.git && cd alac && autoreconf -fi && ./configure --prefix /usr && make && make install && cd ..
- go test -cover -v ./...
- go test -cover -v -tags=disable_codec_libfdk-aac,disable_codec_lame,disable_codec_tta ./...
- go test -cover -v -tags=disable_codec_libfdk-aac,disable_codec_lame,disable_codec_tta,enable_codec_libalac ./...
- go test -cover -v -tags=disable_format_aac,disable_format_alac,disable_format_mp3,disable_format_opus,disable_format_tta,disable_format_vorbis ./...
---
kind: pipeline
@ -40,6 +40,6 @@ steps:
- git clone --depth 1 https://github.com/mstorsjo/fdk-aac.git && cd fdk-aac && ./autogen.sh && ./configure --prefix /usr && make -j$(nproc) && make install && cd ..
- git clone --depth 1 https://git.gammaspectra.live/S.O.N.G/alac.git && cd alac && autoreconf -fi && ./configure --prefix /usr && make && make install && cd ..
- go test -cover -v ./...
- go test -cover -v -tags=disable_codec_libfdk-aac,disable_codec_lame,disable_codec_tta ./...
- go test -cover -v -tags=disable_codec_libfdk-aac,disable_codec_lame,disable_codec_tta,enable_codec_libalac ./...
- go test -cover -v -tags=disable_format_aac,disable_format_alac,disable_format_mp3,disable_format_opus,disable_format_tta,disable_format_vorbis ./...
...

View file

@ -121,6 +121,12 @@ This tag disables the [TTA](https://git.gammaspectra.live/S.O.N.G/go-tta) suppor
This is equivalent to `disable_format_tta`.
### enable_codec_libalac
This tag enables the [libalac](https://git.gammaspectra.live/S.O.N.G/go-alac) support for decoding/encoding ALAC.
This library has vast security issues, enable on your own risk. An alternate codec for decoding might be added in the future.
## Licenses
### Kirika

View file

@ -1,5 +1,5 @@
//go:build !disable_format_alac
// +build !disable_format_alac
//go:build !disable_format_alac && enable_codec_libalac
// +build !disable_format_alac,enable_codec_libalac
package alac

View file

@ -1,5 +1,5 @@
//go:build !disable_format_alac
// +build !disable_format_alac
//go:build !disable_format_alac && enable_codec_libalac
// +build !disable_format_alac,enable_codec_libalac
package alac

View file

@ -1,5 +1,5 @@
//go:build !disable_format_alac
// +build !disable_format_alac
//go:build !disable_format_alac && enable_codec_libalac
// +build !disable_format_alac,enable_codec_libalac
package guess