Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
6aaf635c
Commit
6aaf635c
authored
Dec 20, 2000
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only pre-parse the first 32 MB of data.
parent
c17287dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
include/config.h.in
include/config.h.in
+3
-3
src/input/input_ps.c
src/input/input_ps.c
+7
-1
No files found.
include/config.h.in
View file @
6aaf635c
...
@@ -164,9 +164,6 @@
...
@@ -164,9 +164,6 @@
* General limitations
* 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
/* Maximum number of input threads - this value is used exclusively by
* interface, and is in fact an interface limitation */
* interface, and is in fact an interface limitation */
#define INPUT_MAX_THREADS 10
#define INPUT_MAX_THREADS 10
...
@@ -180,6 +177,9 @@
...
@@ -180,6 +177,9 @@
/* Maximum size of a data packet (128 kB) */
/* Maximum size of a data packet (128 kB) */
#define INPUT_MAX_PACKET_SIZE 131072
#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 */
/* Maximum length of a hostname or source name */
#define INPUT_MAX_SOURCE_LENGTH 100
#define INPUT_MAX_SOURCE_LENGTH 100
...
...
src/input/input_ps.c
View file @
6aaf635c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* input_ps.c: PS demux and packet management
* input_ps.c: PS demux and packet management
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* 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:
* Authors:
*
*
...
@@ -127,6 +127,12 @@ static void PSInit( input_thread_t * p_input )
...
@@ -127,6 +127,12 @@ static void PSInit( input_thread_t * p_input )
/* FIXME: use i_p_config_t */
/* FIXME: use i_p_config_t */
input_ParsePS
(
p_input
,
pp_packets
[
i
]
);
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
);
fseek
(
p_method
->
stream
,
0
,
SEEK_SET
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment