diff mbox

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

Message ID 20171225193905.84024-1-ffmpeg@tmm1.net
State New
Headers show

Commit Message

Aman Karmani Dec. 25, 2017, 7:39 p.m. UTC
From: Aman Gupta <aman@tmm1.net>

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

Patch

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