Ensure that chapter names are utf8 (I failed to find information about
authorLaurent Aimar <fenrir@videolan.org>
Wed, 30 May 2007 19:39:23 +0000 (19:39 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 30 May 2007 19:39:23 +0000 (19:39 +0000)
chapter encoding, I fear the worst)

modules/demux/mp4/mp4.c

index 17fec04..9cc403e 100644 (file)
@@ -532,6 +532,7 @@ static int Open( vlc_object_t * p_this )
             seekpoint_t *s = vlc_seekpoint_New();
 
             s->psz_name = strdup( p_chpl->data.p_chpl->chapter[i].psz_name );
+            EnsureUTF8( s->psz_name );
             s->i_time_offset = p_chpl->data.p_chpl->chapter[i].i_start / 10;
             TAB_APPEND( p_sys->p_title->i_seekpoint, p_sys->p_title->seekpoint, s );
         }