summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2007-05-10 13:25:33 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-05-10 13:25:33 +0000
commit0ba0c8debb0e3b1f4277eee3175b6f85e730353a (patch)
treecb9afaf3076a13280a1c9999c49450667ce96db4 /cmdutils.c
parent35e7f087bacb52d6fdab42f578a5eee3a87be9b6 (diff)
downloadffmpeg-0ba0c8debb0e3b1f4277eee3175b6f85e730353a.tar.gz
Use url_fopen error code when opening input file
handle the AVERROR_NOENT error case in print_error Originally committed as revision 8977 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 74829c96cf..9b2f16a4be 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -138,6 +138,9 @@ void print_error(const char *filename, int err)
case AVERROR_NOMEM:
fprintf(stderr, "%s: memory allocation error occured\n", filename);
break;
+ case AVERROR_NOENT:
+ fprintf(stderr, "%s: no such file or directory\n", filename);
+ break;
default:
fprintf(stderr, "%s: Error while opening file\n", filename);
break;