mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
handle AVERROR_IO and AVERROR_NOMEM patch by (Kostya <cannonball bw-team com>)
Originally committed as revision 3853 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
dd4f8a04fe
commit
45ce5ddb89
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user