[vlc-devel] commit: Made SyncInfo in dts a bit clearer. (Laurent Aimar )

git version control git at videolan.org
Tue Aug 25 23:29:20 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Aug 24 23:42:11 2009 +0200| [8d6e134e07b991b976b1ffb036e18fb5fe22f0c4] | committer: Laurent Aimar 

Made SyncInfo in dts a bit clearer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d6e134e07b991b976b1ffb036e18fb5fe22f0c4
---

 modules/codec/dts.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/codec/dts.c b/modules/codec/dts.c
index b7520d3..78dd52a 100644
--- a/modules/codec/dts.c
+++ b/modules/codec/dts.c
@@ -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 );




More information about the vlc-devel mailing list