[FFmpeg-cvslog] avio: change ffurl_alloc return code.
Nicolas George
git at videolan.org
Sat Apr 28 16:55:44 CEST 2012
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Sat Apr 28 11:01:38 2012 +0200| [12eeced8b41bbe46693f8c9625ed61b51f8438a1] | committer: Nicolas George
avio: change ffurl_alloc return code.
If the designated protocol is not found, return
AVERROR_PROTOCOL_NOT_FOUND instead of AVERROR(ENOENT).
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=12eeced8b41bbe46693f8c9625ed61b51f8438a1
---
libavformat/avio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/avio.c b/libavformat/avio.c
index afaa7e6..e732d1a 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,
More information about the ffmpeg-cvslog
mailing list