From a9316c944575cb50a036b656766c4a790339335c Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Fri, 25 Jan 2019 12:08:19 +0100 Subject: [PATCH] frame_analyzer: exit with status 1 when video files fail to open Bug: None Change-Id: I6da6ee6d3686d97db63f09bd1cfa771ff1bdb403 Reviewed-on: https://webrtc-review.googlesource.com/c/119923 Reviewed-by: Magnus Jedvert Commit-Queue: Oleh Prypin Cr-Commit-Position: refs/heads/master@{#26402} --- rtc_tools/frame_analyzer/frame_analyzer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtc_tools/frame_analyzer/frame_analyzer.cc b/rtc_tools/frame_analyzer/frame_analyzer.cc index 2bfa0342fd..770c80e2d5 100644 --- a/rtc_tools/frame_analyzer/frame_analyzer.cc +++ b/rtc_tools/frame_analyzer/frame_analyzer.cc @@ -130,7 +130,7 @@ int main(int argc, char* argv[]) { if (!reference_video || !test_video) { fprintf(stderr, "Error opening video files\n"); - return 0; + return 1; } const std::vector matching_indices =