summaryrefslogtreecommitdiff
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-10-20 22:01:54 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-10-21 15:55:20 +0200
commitea71aafd6881d7ce5cffec56feb45488e3ac5221 (patch)
tree68d1ce58b7bcbe7844ccc9b592eb55692a9c22a5 /libavformat/avio.c
parent5152196b2b47d446d9a509b9bfb318daa26a1f2b (diff)
avio: Use AVERROR_PROTOCOL_NOT_FOUND
When the protocol is missing ffurl_alloc() should return AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT). Bug-Id: 577 CC: libav-stable@libav.org
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 ad39e6fdb0..689d4a1b07 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -197,7 +197,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,