OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa5daac
)
avio: change ffurl_alloc return code.
author
Nicolas George
<nicolas.george@normalesup.org>
Sat, 28 Apr 2012 09:01:38 +0000
(11:01 +0200)
committer
Nicolas George
<nicolas.george@normalesup.org>
Sat, 28 Apr 2012 14:39:54 +0000
(16:39 +0200)
If the designated protocol is not found, return
AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT).
libavformat/avio.c
patch
|
blob
|
history
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index
afaa7e6
..
e732d1a
100644
(file)
--- 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,