Browse Source

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
tags/v0.5
Kostya Shishkov Michael Niedermayer 20 years ago
parent
commit
45ce5ddb89
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      cmdutils.c

+ 8
- 0
cmdutils.c View File

@@ -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…
Cancel
Save