projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5152196
)
avio: Use AVERROR_PROTOCOL_NOT_FOUND
author
Luca Barbato
<lu_zero@gentoo.org>
Sun, 20 Oct 2013 20:01:54 +0000
(22:01 +0200)
committer
Luca 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
patch
|
blob
|
history
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index
ad39e6f
..
689d4a1
100644
(file)
--- 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,