[vlc-devel] [PATCH] MKV: A_MS/ACM is not packetized

Steve Lhomme robUx4 at videolabs.io
Wed Mar 18 13:48:42 CET 2015


Just like in AVI
http://git.videolan.org/?p=vlc.git;a=blob;f=modules/demux/avi/avi.c;h=0a35b42269fd18019a9c659afca604f6d1358b96;hb=HEAD#l461
---
 modules/demux/mkv/matroska_segment_parse.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 93dfa4e..d8daad1 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1493,6 +1493,7 @@ int32_t matroska_segment_c::TrackInit( mkv_track_t * p_tk )
             if( p_tk->fmt.i_codec == VLC_FOURCC( 'u', 'n', 'd', 'f' ) )
                 msg_Err( &sys.demuxer, "Unrecognized wf tag: 0x%x", GetWLE( &p_wf->wFormatTag ) );
         }
+        p_fmt->b_packetized = !p_fmt->audio.i_blockalign;
     }
     else if( !strcmp( p_tk->psz_codec, "A_MPEG/L3" ) ||
              !strcmp( p_tk->psz_codec, "A_MPEG/L2" ) ||
-- 
2.3.2




More information about the vlc-devel mailing list