[vlc-devel] [PATCH] mkv: fixed parsing regression related to S_TEXT/UTF8

Filip Roséen filip at videolabs.io
Fri Mar 18 11:10:35 CET 2016


The problem was due to a simple typo, the codec string is of course
"S_TEXT/UTF8" and not "S_TEXT/UTF-8"; even though hyphens are cool it
has now been removed to fix the issue.
---
 modules/demux/mkv/matroska_segment_parse.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index e786a0f..8c1c0c3 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1680,7 +1680,7 @@ int32_t matroska_segment_c::TrackInit( mkv_track_t * p_tk )
             vars.p_fmt->i_codec = VLC_CODEC_SUBT;
             vars.p_fmt->subs.psz_encoding = strdup( "ASCII" );
         }
-        S_CASE("S_TEXT/UTF-8") {
+        S_CASE("S_TEXT/UTF8") {
             vars.p_tk->fmt.i_codec = VLC_CODEC_SUBT;
             vars.p_tk->fmt.subs.psz_encoding = strdup( "UTF-8" );
         }
-- 
2.7.3



More information about the vlc-devel mailing list