Originally committed as revision 24396 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -34,6 +34,9 @@ pcm_ref="$datadir/$test_ref.ref.wav" |
| 34 | 34 |
crcfile="$datadir/$this.crc" |
| 35 | 35 |
target_crcfile="$target_datadir/$this.crc" |
| 36 | 36 |
|
| 37 |
+cleanfiles="$raw_dst $pcm_dst $crcfile $bench $bench2" |
|
| 38 |
+trap 'rm -f -- $cleanfiles' EXIT |
|
| 39 |
+ |
|
| 37 | 40 |
mkdir -p "$datadir" |
| 38 | 41 |
mkdir -p "$outfile" |
| 39 | 42 |
mkdir -p "$logdir" |
| ... | ... |
@@ -89,7 +92,6 @@ do_ffmpeg_crc() |
| 89 | 89 |
$echov $ffmpeg $FFMPEG_OPTS $* -f crc "$target_crcfile" |
| 90 | 90 |
$ffmpeg $FFMPEG_OPTS $* -f crc "$target_crcfile" |
| 91 | 91 |
echo "$f $(cat $crcfile)" >> $logfile |
| 92 |
- rm -f "$crcfile" |
|
| 93 | 92 |
} |
| 94 | 93 |
|
| 95 | 94 |
do_ffmpeg_nocheck() |
| ... | ... |
@@ -105,7 +107,6 @@ do_ffmpeg_nocheck() |
| 105 | 105 |
do_video_decoding() |
| 106 | 106 |
{
|
| 107 | 107 |
do_ffmpeg $raw_dst $1 -i $target_path/$file -f rawvideo $2 |
| 108 |
- rm -f $raw_dst |
|
| 109 | 108 |
} |
| 110 | 109 |
|
| 111 | 110 |
do_video_encoding() |