[FFmpeg-devel] [PATCH 1/2] report: fail if the report does not exists
Michael Niedermayer
michael at niedermayer.cc
Sun Aug 8 11:28:24 EEST 2021
From: Janne Grunau <j at jannau.net>
---
report.cgi | 1 +
1 file changed, 1 insertion(+)
diff --git a/report.cgi b/report.cgi
index a980617..43ea134 100755
--- a/report.cgi
+++ b/report.cgi
@@ -30,6 +30,7 @@ my $slotdir = "$fatedir/$req_slot";
my $repdir = "$slotdir/$req_time";
my $report = "$repdir/report.xz";
+fail 'Requsted report not found' if not -f $report;
open R, '-|', "unxz -c $report" or fail 'Requsted report not found';
my $hdr = split_header scalar <R> or fail 'Invalid report';
--
2.17.1
More information about the ffmpeg-devel
mailing list