Commit fff30bd8 authored by michael's avatar michael

handle AVERROR_IO and AVERROR_NOMEM patch by (Kostya <cannonball bw-team com>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3853 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 58dd11de
......@@ -110,6 +110,14 @@ void print_error(const char *filename, int err)
case AVERROR_NOFMT:
fprintf(stderr, "%s: Unknown format\n", filename);
break;
case AVERROR_IO:
fprintf(stderr, "%s: I/O error occured\n"
"Usually that means that input file is truncated and/or corrupted.\n",
filename);
break;
case AVERROR_NOMEM:
fprintf(stderr, "%s: memory allocation error occured\n", filename);
break;
default:
fprintf(stderr, "%s: Error while opening file\n", filename);
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment