Commit 343aa93d authored by Konstantin Pavlov's avatar Konstantin Pavlov Committed by Jean-Baptiste Kempf

m3u: assume m3u with BOM at start as utf-8 encoded.

X-Patched-By: default avatarSergey Bolshakov <sbolshakov@altlinux.org>
(cherry picked from commit 75a167f5b377a1edba3e1bf0230af05da7974347)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 47034c14
......@@ -71,6 +71,7 @@ int Import_M3U( vlc_object_t *p_this )
char *(*pf_dup) (const char *);
if( POKE( p_peek, "RTSPtext", 8 ) /* QuickTime */
|| POKE( p_peek, "\xef\xbb\xbf" "#EXTM3U", 10) /* BOM at start */
|| demux_IsPathExtension( p_demux, ".m3u8" )
|| demux_IsForced( p_demux, "m3u8" ) )
pf_dup = CheckUnicode; /* UTF-8 */
......
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