diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2005-01-20 15:31:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-01-20 15:31:07 +0000 |
commit | 45ce5ddb897ca14f18cc0bb26f1e457bf936c78c (patch) | |
tree | 600d43d08e1ff486363170780699fdbe4ded78ba | |
parent | dd4f8a04fe81c2587293a7c89ef8702f54330339 (diff) | |
download | ffmpeg-streaming-45ce5ddb897ca14f18cc0bb26f1e457bf936c78c.zip ffmpeg-streaming-45ce5ddb897ca14f18cc0bb26f1e457bf936c78c.tar.gz |
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
-rw-r--r-- | cmdutils.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |