Commit 59838ee7 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Force the UTF-8 encoding on mp4 text subtitles. (Note they can also be...

* Force the UTF-8 encoding on mp4 text subtitles. (Note they can also be UTF-16, but that needs to be converted to UTF-8 in that case. refs #612
parent 6fa56f0c
......@@ -1314,7 +1314,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
p_track->fmt.i_codec = VLC_FOURCC( 's', 'u', 'b', 't' );
/* FIXME: Not true, could be UTF-16 with a Byte Order Mark (0xfeff) */
/* FIXME UTF-8 doesn't work here ? */
/* p_track->fmt.subs.psz_encoding = strdup( "UTF-8" ); */
p_track->fmt.subs.psz_encoding = strdup( "UTF-8" );
break;
default:
......
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