Merge "vpxdec: correct file op error messages"

This commit is contained in:
James Zern 2015-02-06 14:40:52 -08:00 коммит произвёл Gerrit Code Review
Родитель 6a078a21be 6b993f076e
Коммит aa6db39a17
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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 - */