From 12eeced8b41bbe46693f8c9625ed61b51f8438a1 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Sat, 28 Apr 2012 11:01:38 +0200 Subject: [PATCH] avio: change ffurl_alloc return code. If the designated protocol is not found, return AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT). --- libavformat/avio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avio.c b/libavformat/avio.c index afaa7e6e19a..e732d1ad4a6 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, -- 2.39.2