]> git.sesse.net Git - ffmpeg/blobdiff - tests/fate-run.sh
Merge commit 'eb8a8115994434b548523cf0bca6a4a74784e79c'
[ffmpeg] / tests / fate-run.sh
index 2d5dbf2f47d67aca725a0576ac2cae2dd8ad5ff0..e65184ba36d25eb50e3bd69a066cff43ccbb0926 100755 (executable)
@@ -247,6 +247,7 @@ stream_remux(){
 # functions above and below that should be refactored.
 ffmpeg2="$target_exec ${target_path}/ffmpeg"
 raw_src="${target_path}/tests/vsynth1/%02d.pgm"
+pcm_src="${target_path}/tests/data/asynth1.sw"
 crcfile="tests/data/$test.lavf.crc"
 target_crcfile="${target_path}/$crcfile"
 
@@ -281,6 +282,14 @@ do_avconv_crc(){
     echo "$f $(cat $crcfile)"
 }
 
+lavf_audio(){
+    t="${test#lavf-}"
+    outdir="tests/data/lavf"
+    file=${outdir}/lavf.$t
+    do_avconv $file $DEC_OPTS $1 -ar 44100 -f s16le -i $pcm_src "$ENC_OPTS -metadata title=lavftest" -t 1 -qscale 10 $2
+    do_avconv_crc $file $DEC_OPTS $3 -i $target_path/$file
+}
+
 lavf_image2pipe(){
     t="${test#lavf-}"
     t="${t%pipe}"