shithub: mp3dec

ref: de6b040c466c6f0323f0391eacc8d8b4c8cb9fe9
dir: /scripts/build.sh/

View raw version
set -e

if [ ! -d "fate-suite.ffmpeg.org" ]; then
  wget -np -r --level=1 http://fate-suite.ffmpeg.org/mp3-conformance/
fi

gcc -Dminimp3_test -O2 -g -o minimp3 minimp3.c -lm

APP=./minimp3

set +e
for i in fate-suite.ffmpeg.org/mp3-conformance/*.bit; do
$APP $i $i.out ${i%.*}.pcm
retval=$?
echo $i exited with code=$retval
if [ ! $retval -eq 0 ]; then
  exit 1
fi
done