AVI: fix track names character set (fixes #2334)
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 16 Dec 2008 17:58:26 +0000 (19:58 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Tue, 16 Dec 2008 17:58:26 +0000 (19:58 +0200)
modules/demux/avi/avi.c

index 5038cf9..caf9828 100644 (file)
@@ -630,11 +630,7 @@ static int Open( vlc_object_t * p_this )
                 continue;
         }
         if( p_strn )
-        {
-            /* The charset of p_strn is undefined */
-            EnsureUTF8( p_strn->p_str );
-            fmt.psz_description = strdup( p_strn->p_str );
-        }
+            fmt.psz_description = FromLatin1( p_strn->p_str );
         if( tk->p_out_muxed == NULL )
             tk->p_es = es_out_Add( p_demux->out, &fmt );
         TAB_APPEND( p_sys->i_track, p_sys->track, tk );