[FFmpeg-cvslog] avio: Use AVERROR_PROTOCOL_NOT_FOUND
Luca Barbato
git at videolan.org
Sun Jan 12 16:28:07 CET 2014
ffmpeg | branch: release/1.1 | Luca Barbato <lu_zero at gentoo.org> | Sun Oct 20 22:01:54 2013 +0200| [d6d2617d07fcb25665543a3b7300ef17facaa809] | committer: Reinhard Tartler
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 at libav.org
(cherry picked from commit ea71aafd6881d7ce5cffec56feb45488e3ac5221)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d6d2617d07fcb25665543a3b7300ef17facaa809
---
libavformat/avio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/avio.c b/libavformat/avio.c
index ad39e6f..689d4a1 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,
More information about the ffmpeg-cvslog
mailing list