From 8d6e134e07b991b976b1ffb036e18fb5fe22f0c4 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Mon, 24 Aug 2009 23:42:11 +0200 Subject: [PATCH] Made SyncInfo in dts a bit clearer. --- modules/codec/dts.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/codec/dts.c b/modules/codec/dts.c index b7520d3b44..78dd52acc3 100644 --- a/modules/codec/dts.c +++ b/modules/codec/dts.c @@ -29,6 +29,7 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif +#include #include #include @@ -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 ); -- GitLab