summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-28 11:01:38 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-04-28 16:39:54 +0200
commit12eeced8b41bbe46693f8c9625ed61b51f8438a1 (patch)
tree2e42e25e2dc8f2696d6614e6bb0b56cfca6b98c8 /libavformat/avio.c
parentfa5daaca0d6ffcfaa9e9d19089910ee7ebf9a8b7 (diff)
avio: change ffurl_alloc return code.
If the designated protocol is not found, return AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT).
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index afaa7e6e19..e732d1ad4a 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -229,7 +229,7 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
return url_alloc_for_protocol (puc, up, filename, flags, int_cb);
}
*puc = NULL;
- return AVERROR(ENOENT);
+ return AVERROR_PROTOCOL_NOT_FOUND;
}
int ffurl_open(URLContext **puc, const char *filename, int flags,