]> git.sesse.net Git - vlc/commitdiff
Made SyncInfo in dts a bit clearer.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 24 Aug 2009 21:42:11 +0000 (23:42 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 25 Aug 2009 21:17:00 +0000 (23:17 +0200)
modules/codec/dts.c

index b7520d3b440bcc788c39cfb3e101fec59df3bb89..78dd52acc3cb4114833f73667f8df960bd1abc74 100644 (file)
@@ -29,6 +29,7 @@
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
+#include <assert.h>
 
 #include <vlc_common.h>
 #include <vlc_plugin.h>
@@ -622,9 +623,11 @@ static int SyncInfo( const uint8_t *p_buf,
                                      pi_bit_rate, pi_frame_length );
     }
     /* DTS-HD */
-    else if( p_buf[0] == 0x64 && p_buf[1] ==  0x58 &&
-             p_buf[2] == 0x20 && p_buf[3] ==  0x25 )
+    else
     {
+        assert( p_buf[0] == 0x64 && p_buf[1] ==  0x58 &&
+                p_buf[2] == 0x20 && p_buf[3] ==  0x25 );
+
         int i_dts_hd_size;
         bs_t s;
         bs_init( &s, &p_buf[4], DTS_HEADER_SIZE - 4 );