avio: Use AVERROR_PROTOCOL_NOT_FOUND
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 20 Oct 2013 20:01:54 +0000 (22:01 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 21 Oct 2013 13:55:20 +0000 (15:55 +0200)
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
libavformat/avio.c

index ad39e6f..689d4a1 100644 (file)
@@ -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,