summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2008-04-03 22:16:34 +0000
committerLuca Barbato <lu_zero@gentoo.org>2008-04-03 22:16:34 +0000
commit18ec046026b43299cff4334f201300aeb03a1676 (patch)
tree27b46019f7017e504c7baefcad15508120845815 /cmdutils.c
parent5ee0e1395d6e71eebe31768dd4663247dc0c183d (diff)
downloadffmpeg-18ec046026b43299cff4334f201300aeb03a1676.tar.gz
Error message for EPROTONOSUPPORT, patch from prossATxvidDoTorg
Originally committed as revision 12679 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 3eb9c18ecd..8333994993 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -31,6 +31,7 @@
#include "cmdutils.h"
#include "avstring.h"
#include "version.h"
+#include "network.h"
#undef exit
@@ -180,6 +181,9 @@ void print_error(const char *filename, int err)
case AVERROR(ENOENT):
fprintf(stderr, "%s: no such file or directory\n", filename);
break;
+ case AVERROR(FF_NETERROR(EPROTONOSUPPORT)):
+ fprintf(stderr, "%s: Unsupported network protocol\n", filename);
+ break;
default:
fprintf(stderr, "%s: Error while opening file\n", filename);
break;