[libav-devel] [PATCH 04/20] tests: Simplify do_streamed_images()

Diego Biurrun diego at biurrun.de
Thu Sep 20 10:47:13 CEST 2018


---
 tests/lavf-regression.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/lavf-regression.sh b/tests/lavf-regression.sh
index 5c9a510403..10fbe4cbeb 100755
--- a/tests/lavf-regression.sh
+++ b/tests/lavf-regression.sh
@@ -20,7 +20,8 @@ do_lavf()
 
 do_streamed_images()
 {
-    file=${outdir}${1}pipe.$1
+    t="${test%pipe}"
+    file=${outdir}${t}pipe.$t
     do_avconv $file $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src -f image2pipe $ENC_OPTS -t 1 -qscale 10
     do_avconv_crc $file $DEC_OPTS -f image2pipe -i $target_path/$file
 }
@@ -110,15 +111,15 @@ fi
 #do_avconv_crc $file -i $target_path/$file
 
 if [ -n "$do_pbmpipe" ] ; then
-do_streamed_images pbm
+do_streamed_images
 fi
 
 if [ -n "$do_pgmpipe" ] ; then
-do_streamed_images pgm
+do_streamed_images
 fi
 
 if [ -n "$do_ppmpipe" ] ; then
-do_streamed_images ppm
+do_streamed_images
 fi
 
 if [ -n "$do_gif" ] ; then
-- 
2.11.0



More information about the libav-devel mailing list