-
The httplive module doesn't always append a null character after reading the playlist. Many str* function is used on the playlist buffer (strstr, printf, ...). We must ensure that the buffer is null terminated, else we will read random data. We also have two functions readM3u8() and read_M3u8() that does the same job. Rewrite it into read_M3U8_from_url() and read_M3U8_from_stream(). Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
673cd7b5