[FFmpeg-devel] [PATCH 1/3] avformat/hlsenc: return AVERROR_PROTOCOL_NOT_FOUND when http protocol is not available

Aman Gupta ffmpeg at tmm1.net
Mon Dec 25 21:39:03 EET 2017


From: Aman Gupta <aman at tmm1.net>

Signed-off-by: Aman Gupta <aman at tmm1.net>
---
 libavformat/hlsenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 74f66ce6bd..f636db0144 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -250,7 +250,7 @@ static int hlsenc_io_open(AVFormatContext *s, AVIOContext **pb, char *filename,
                           AVDictionary **options) {
     HLSContext *hls = s->priv_data;
     int http_base_proto = filename ? is_http_proto(filename) : 0;
-    int err = AVERROR_MUXER_NOT_FOUND;
+    int err = AVERROR_PROTOCOL_NOT_FOUND;
     if (!*pb || !http_base_proto || !hls->http_persistent) {
         err = s->io_open(s, pb, filename, AVIO_FLAG_WRITE, options);
 #if CONFIG_HTTP_PROTOCOL
-- 
2.14.2



More information about the ffmpeg-devel mailing list