[vlc-devel] [PATCH] MKV: fix ATRAC3 playback

Steve Lhomme robUx4 at videolabs.io
Wed Mar 18 16:35:46 CET 2015


Fixes #14205
---
 modules/demux/mkv/matroska_segment_parse.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index d8daad1..a9d90ad 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1695,7 +1695,10 @@ int32_t matroska_segment_c::TrackInit( mkv_track_t * p_tk )
                     p_tk->fmt.audio.i_blockalign = hton16(priv->sub_packet_size);
                 }
                 else if( !strcmp( p_tk->psz_codec, "A_REAL/ATRC" ) )
+                {
                     p_tk->fmt.i_codec = VLC_CODEC_ATRAC3;
+                    p_tk->fmt.audio.i_blockalign = hton16(priv->sub_packet_size);
+                }
                 else if( !strcmp( p_tk->psz_codec, "A_REAL/28_8" ) )
                     p_tk->fmt.i_codec = VLC_CODEC_RA_288;
                 /* FIXME RALF and SIPR */
-- 
2.3.2




More information about the vlc-devel mailing list