diff options
author | James Zern <jzern@google.com> | 2015-02-05 21:06:29 -0800 |
---|---|---|
committer | James Zern <jzern@google.com> | 2015-02-05 21:08:19 -0800 |
commit | 6b993f076ea3f4b270b97d8b3bf3210372e477e0 (patch) | |
tree | 1d018bcf2672b5c008e2ad137f13f4b989bee858 /vpxdec.c | |
parent | be6aeadaf49de28f13355d5dd7f64b4074dcca7c (diff) | |
download | libvpx-6b993f076ea3f4b270b97d8b3bf3210372e477e0.tar libvpx-6b993f076ea3f4b270b97d8b3bf3210372e477e0.tar.gz libvpx-6b993f076ea3f4b270b97d8b3bf3210372e477e0.tar.bz2 libvpx-6b993f076ea3f4b270b97d8b3bf3210372e477e0.zip |
vpxdec: correct file op error messages
- use fatal() consistently
- correct wording in output file open failure message
Change-Id: I4dafe03c6eece6df53375f72adf0d5964e211c9a
Diffstat (limited to 'vpxdec.c')
-rw-r--r-- | vpxdec.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -519,7 +519,7 @@ static FILE *open_outfile(const char *name) { } else { FILE *file = fopen(name, "wb"); if (!file) - fatal("Failed to output file %s", name); + fatal("Failed to open output file '%s'", name); return file; } } @@ -725,8 +725,7 @@ int main_loop(int argc, const char **argv_) { infile = strcmp(fn, "-") ? fopen(fn, "rb") : set_binary_mode(stdin); if (!infile) { - fprintf(stderr, "Failed to open file '%s'", strcmp(fn, "-") ? fn : "stdin"); - return EXIT_FAILURE; + fatal("Failed to open input file '%s'", strcmp(fn, "-") ? fn : "stdin"); } #if CONFIG_OS_SUPPORT /* Make sure we don't dump to the terminal, unless forced to with -o - */ |