From: Henri Fallon Date: Sun, 18 Mar 2001 20:46:16 +0000 (+0000) Subject: Replaced ( a < b/c ) by ( a*c < b ). X-Git-Tag: 0.2.70~45 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9c1a7ddaaebff016702b5ad8605387f659470d8c;p=vlc Replaced ( a < b/c ) by ( a*c < b ). --- diff --git a/plugins/mpeg/input_ts.c b/plugins/mpeg/input_ts.c index 17d158ca45..3194d45a5b 100644 --- a/plugins/mpeg/input_ts.c +++ b/plugins/mpeg/input_ts.c @@ -2,7 +2,7 @@ * input_ts.c: TS demux and netlist management ***************************************************************************** * Copyright (C) 1998, 1999, 2000 VideoLAN - * $Id: input_ts.c,v 1.10 2001/03/18 18:48:27 henri Exp $ + * $Id: input_ts.c,v 1.11 2001/03/18 20:46:16 henri Exp $ * * Authors: Henri Fallon * @@ -257,7 +257,7 @@ static int TSRead( input_thread_t * p_input, (int)(i_read/TS_PACKET_SIZE) , pp_packets ); /* check correct TS header */ - for( i_loop=0; i_loop < (int)(i_read/TS_PACKET_SIZE); i_loop++ ) + for( i_loop=0; i_loop * TS_PACKET_SIZE < i_read; i_loop++ ) { if( pp_packets[i_loop]->p_buffer[0] != 0x47 ) intf_ErrMsg( "TS input : Bad TS Packet (starcode != 0x47)." );