aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2005-01-20 15:31:07 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-20 15:31:07 +0000
commit45ce5ddb897ca14f18cc0bb26f1e457bf936c78c (patch)
tree600d43d08e1ff486363170780699fdbe4ded78ba
parentdd4f8a04fe81c2587293a7c89ef8702f54330339 (diff)
downloadffmpeg-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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 16067cb556..955b485ee8 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -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;