...
 
Commits (5)
default:
tags:
- docker
# Image from https://hub.docker.com/_/gcc/ based on Debian
image: gcc:9
.autoconf:
stage: build
before_script:
- apt-get update &&
apt-get install -y libogg-dev
script:
- ./autogen.sh
- ./configure ${CONFIG_FLAGS}
- make
- make check
autoconf:
extends: .autoconf
script:
- ./autogen.sh
- ./configure ${CONFIG_FLAGS}
- make
- make distcheck
fixed-point:
extends: .autoconf
variables:
CONFIG_FLAGS: --enable-fixed-point
no-float:
extends: .autoconf
variables:
CONFIG_FLAGS: --enable-fixed-point --disable-float-api
vorbis-psy:
extends: .autoconf
variables:
CONFIG_FLAGS: --enable-vorbis-psy
no-binaries:
extends: .autoconf
variables:
CONFIG_FLAGS: --disable-binaries
......@@ -111,7 +111,7 @@ int read_wav_header(FILE *file, int *rate, int *channels, int *format, spx_int32
stmp = le_short(stmp);
*channels = stmp;
if (stmp>2)
if (stmp>2 || stmp<1)
{
fprintf (stderr, "Only mono and (intensity) stereo supported\n");
return -1;
......