Commit 6aaf635c authored by Christophe Massiot's avatar Christophe Massiot

Only pre-parse the first 32 MB of data.

parent c17287dc
......@@ -164,9 +164,6 @@
* General limitations
*/
/* Broadcast address, in case of a broadcasted stream */
#define INPUT_BCAST_ADDR "138.195.143.255"
/* Maximum number of input threads - this value is used exclusively by
* interface, and is in fact an interface limitation */
#define INPUT_MAX_THREADS 10
......@@ -180,6 +177,9 @@
/* Maximum size of a data packet (128 kB) */
#define INPUT_MAX_PACKET_SIZE 131072
/* Maximum length of a pre-parsed chunk (32 MB) */
#define INPUT_PREPARSE_LENGTH 33554432
/* Maximum length of a hostname or source name */
#define INPUT_MAX_SOURCE_LENGTH 100
......
......@@ -2,7 +2,7 @@
* input_ps.c: PS demux and packet management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input_ps.c,v 1.7 2000/12/20 16:04:31 massiot Exp $
* $Id: input_ps.c,v 1.8 2000/12/20 18:45:43 massiot Exp $
*
* Authors:
*
......@@ -127,6 +127,12 @@ static void PSInit( input_thread_t * p_input )
/* FIXME: use i_p_config_t */
input_ParsePS( p_input, pp_packets[i] );
}
/* File too big. */
if( p_input->stream.i_tell > INPUT_PREPARSE_LENGTH )
{
break;
}
}
fseek( p_method->stream, 0, SEEK_SET );
vlc_mutex_lock( &p_input->stream.stream_lock );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment