diff options
author | wm4 <nfxjfg@googlemail.com> | 2015-04-15 21:10:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-04-16 23:05:47 +0200 |
commit | 8297d87eecbf19821a8f6f1e230f025394f281d2 (patch) | |
tree | 5709575837009c36f32e98bdfc8b84880935ee49 /tests/fate-run.sh | |
parent | bc4fee7f2a51635fa3c0f61d1e5164da1efeded3 (diff) | |
download | ffmpeg-8297d87eecbf19821a8f6f1e230f025394f281d2.tar.gz |
fate: add mp3 gapless test
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-x | tests/fate-run.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 74f264533d..c68c389826 100755 --- a/tests/fate-run.sh +++ b/tests/fate-run.sh @@ -220,6 +220,28 @@ pixfmts(){ test=$outertest } +gapless(){ + sample=$(target_path $1) + extra_args=$2 + + decfile1="${outdir}/${test}.out-1" + decfile2="${outdir}/${test}.out-2" + cleanfiles="$cleanfiles $decfile1 $decfile2" + + # large enough to make ffmpeg.c seek to the start of the file + start_offset=-1 + + # test packet data + ffmpeg -i "$sample" $extra_args -flags +bitexact -c:a copy -f framecrc -y $decfile1 + do_md5sum $decfile1 + # test decoded (and cut) data + ffmpeg -i "$sample" $extra_args -flags +bitexact -f wav md5: + # the same as aboce again, with seeking to the start + ffmpeg -ss $start_offset -i "$sample" $extra_args -flags +bitexact -c:a copy -f framecrc -y $decfile2 + do_md5sum $decfile2 + ffmpeg -ss $start_offset -i "$sample" $extra_args -flags +bitexact -f wav md5: +} + mkdir -p "$outdir" # Disable globbing: command arguments may contain globbing characters and |