X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Fdts.c;h=f359b56b60e746075811da5fc0dd15aac904ba6a;hb=360b392dd3393a95af4b8bbf9b58e2638d66d398;hp=0530e06e21601ca0a93e888cfd22795102b5ee64;hpb=ad4a7e63c72072663a0792f572b5c45e4182d562;p=vlc diff --git a/modules/codec/dts.c b/modules/codec/dts.c index 0530e06e21..f359b56b60 100644 --- a/modules/codec/dts.c +++ b/modules/codec/dts.c @@ -1,7 +1,7 @@ /***************************************************************************** * dts.c: parse DTS audio sync info and packetize the stream ***************************************************************************** - * Copyright (C) 2003 VideoLAN + * Copyright (C) 2003-2005 the VideoLAN team * $Id$ * * Authors: Jon Lech Johansen @@ -19,7 +19,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** @@ -54,8 +54,12 @@ struct decoder_sys_t mtime_t i_pts; - int i_frame_size, i_bit_rate; - unsigned int i_frame_length, i_rate, i_channels, i_channels_conf; + unsigned int i_bit_rate; + unsigned int i_frame_size; + unsigned int i_frame_length; + unsigned int i_rate; + unsigned int i_channels; + unsigned int i_channels_conf; }; enum { @@ -173,7 +177,7 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) return NULL; } - if( (*pp_block)->i_flags&BLOCK_FLAG_DISCONTINUITY ) + if( (*pp_block)->i_flags&(BLOCK_FLAG_DISCONTINUITY|BLOCK_FLAG_CORRUPTED) ) { p_sys->i_state = STATE_NOSYNC; }