summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <[email protected]>2013-10-20 22:01:54 +0200
committerReinhard Tartler <[email protected]>2014-01-05 17:08:19 -0500
commitd6d2617d07fcb25665543a3b7300ef17facaa809 (patch)
tree931baeca9984fe5ffa35f3e114bda767d9e8f356
parent0e8ae6d10c609bb968c141aa2436413a55852590 (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: [email protected] (cherry picked from commit ea71aafd6881d7ce5cffec56feb45488e3ac5221) Signed-off-by: Reinhard Tartler <[email protected]>
-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,