提交 45ce5ddb 编写于 作者: K Kostya Shishkov 提交者: Michael Niedermayer

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
上级 dd4f8a04
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册