From 42267080f935d11f88d7df262791a139e71cee96 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 9 Jan 2016 15:43:30 +0100 Subject: [PATCH] libeplayer3: enable streams that use http auth --- libeplayer3/input.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libeplayer3/input.cpp b/libeplayer3/input.cpp index 2e562bf..15536f7 100644 --- a/libeplayer3/input.cpp +++ b/libeplayer3/input.cpp @@ -459,7 +459,10 @@ bool Input::Init(const char *filename) avfc->interrupt_callback.callback = interrupt_cb; avfc->interrupt_callback.opaque = (void *) player; - int err = avformat_open_input(&avfc, filename, NULL, 0); + AVDictionary *options = NULL; + av_dict_set(&options, "auth_type", "basic", 0); + int err = avformat_open_input(&avfc, filename, NULL, &options); + av_dict_free(&options); if (averror(err, avformat_open_input)) { avformat_free_context(avfc); return false;