Merge "vpxdec: correct file op error messages"

This commit is contained in:
James Zern
2015-02-06 14:40:52 -08:00
committed by Gerrit Code Review

View File

@@ -519,7 +519,7 @@ static FILE *open_outfile(const char *name) {
} else { } else {
FILE *file = fopen(name, "wb"); FILE *file = fopen(name, "wb");
if (!file) if (!file)
fatal("Failed to output file %s", name); fatal("Failed to open output file '%s'", name);
return file; return file;
} }
} }
@@ -725,8 +725,7 @@ int main_loop(int argc, const char **argv_) {
infile = strcmp(fn, "-") ? fopen(fn, "rb") : set_binary_mode(stdin); infile = strcmp(fn, "-") ? fopen(fn, "rb") : set_binary_mode(stdin);
if (!infile) { if (!infile) {
fprintf(stderr, "Failed to open file '%s'", strcmp(fn, "-") ? fn : "stdin"); fatal("Failed to open input file '%s'", strcmp(fn, "-") ? fn : "stdin");
return EXIT_FAILURE;
} }
#if CONFIG_OS_SUPPORT #if CONFIG_OS_SUPPORT
/* Make sure we don't dump to the terminal, unless forced to with -o - */ /* Make sure we don't dump to the terminal, unless forced to with -o - */