Merge "vpxdec: correct file op error messages"
This commit is contained in:
Коммит
aa6db39a17
5
vpxdec.c
5
vpxdec.c
|
@ -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 - */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче