Commit 91c23c47 authored by Andrey Gursky's avatar Andrey Gursky Committed by François Cartegnie

demux: adaptive: fixup for commit b99bc394

error: ‘sscanf’ is not a member of ‘std’
        if (std::sscanf(line.c_str(), "%zx%n", &chunkLength, &end) < 1
            ^

Fix build with compilers which do not default to c++11 or later,
e.g. g++ < 6, clang++ up to and including 3.9.

Noticed during build for VLC-Android.
Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
parent 48edcfab
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "Sockets.hpp" #include "Sockets.hpp"
#include "../adaptive/tools/Helper.h" #include "../adaptive/tools/Helper.h"
#include <cstdio>
#include <sstream> #include <sstream>
#include <vlc_stream.h> #include <vlc_stream.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment