diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-10-20 22:01:54 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-10-21 15:55:20 +0200 |
commit | ea71aafd6881d7ce5cffec56feb45488e3ac5221 (patch) | |
tree | 68d1ce58b7bcbe7844ccc9b592eb55692a9c22a5 | |
parent | 5152196b2b47d446d9a509b9bfb318daa26a1f2b (diff) | |
download | ffmpeg-ea71aafd6881d7ce5cffec56feb45488e3ac5221.tar.gz |
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
-rw-r--r-- | libavformat/avio.c | 2 |
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, |