From: Jon Lech Johansen Date: Tue, 18 Mar 2003 00:25:27 +0000 (+0000) Subject: * ./modules/codec/dts.c: Steve Jobs did not pay me for this bug. Really. X-Git-Tag: 0.5.3~160 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f2dd0b846b36eaed20264e6c6a8259306e1b1c84;hp=f545a915b3bffdf7d45192e6bfb8094e8fa58448;p=vlc * ./modules/codec/dts.c: Steve Jobs did not pay me for this bug. Really. --- diff --git a/modules/codec/dts.c b/modules/codec/dts.c index f3fd0f10fe..9c54c32230 100644 --- a/modules/codec/dts.c +++ b/modules/codec/dts.c @@ -2,7 +2,7 @@ * dts.c: DTS basic parser ***************************************************************************** * Copyright (C) 2003 VideoLAN - * $Id: dts.c,v 1.2 2003/03/10 08:23:45 jlj Exp $ + * $Id: dts.c,v 1.3 2003/03/18 00:25:27 jlj Exp $ * * Authors: Jon Lech Johansen * @@ -322,7 +322,8 @@ static int SyncInfo( const byte_t * p_buf, unsigned int * pi_channels, 2048000, 3072000, 3840000, 4096000, 0, 0 }; - if( ((uint32_t*)p_buf)[0] != 0x7ffe8001 ) + if( (p_buf[0] != 0x7f) || (p_buf[1] != 0xfe) || + (p_buf[2] != 0x80) || (p_buf[3] != 0x01) ) { return( 0 ); }