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
f223ef75
Commit
f223ef75
authored
Mar 05, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed
MPEG-1
mux_rate parsing.
Fixed
MPEG-1
stuffing.
parent
da6730d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/input/mpeg_system.c
src/input/mpeg_system.c
+6
-7
No files found.
src/input/mpeg_system.c
View file @
f223ef75
...
...
@@ -2,7 +2,7 @@
* mpeg_system.c: TS, PS and PES management
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: mpeg_system.c,v 1.4
0 2001/03/02 13:20:29
massiot Exp $
* $Id: mpeg_system.c,v 1.4
1 2001/03/05 16:00:30
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Michel Lespinasse <walken@via.ecp.fr>
...
...
@@ -258,7 +258,7 @@ void input_ParsePES( input_thread_t * p_input, es_descriptor_t * p_es )
/* Cannot fail because the previous one succeeded. */
MoveChunk
(
NULL
,
&
p_data
,
&
p_byte
,
6
);
while
(
*
p_byte
==
0xFF
&&
i_pes_header_size
<
2
2
)
while
(
*
p_byte
==
0xFF
&&
i_pes_header_size
<
2
3
)
{
i_pes_header_size
++
;
if
(
MoveChunk
(
NULL
,
&
p_data
,
&
p_byte
,
1
)
!=
1
)
...
...
@@ -270,7 +270,7 @@ void input_ParsePES( input_thread_t * p_input, es_descriptor_t * p_es )
return
;
}
}
if
(
i_pes_header_size
==
2
2
)
if
(
i_pes_header_size
==
2
3
)
{
intf_ErrMsg
(
"Too much MPEG-1 stuffing"
);
p_input
->
pf_delete_pes
(
p_input
->
p_method_data
,
p_pes
);
...
...
@@ -818,9 +818,8 @@ void input_DemuxPS( input_thread_t * p_input, data_packet_t * p_data )
>>
11
);
/* mux_rate */
i_mux_rate
=
((
((
u32
)
U16_AT
(
p_header
+
10
)
<<
16
)
|
(
u32
)
U16_AT
(
p_header
+
12
)
)
&
0xFFFFFC00
)
>>
11
;
i_mux_rate
=
((
u32
)
U16_AT
(
p_header
+
10
)
<<
6
)
|
(
p_header
[
12
]
>>
2
);
}
else
{
...
...
@@ -842,7 +841,7 @@ void input_DemuxPS( input_thread_t * p_input, data_packet_t * p_data )
((
mtime_t
)
p_header
[
8
]
>>
1
);
/* mux_rate */
i_mux_rate
=
(
U32_AT
(
p_header
+
8
)
&
0x
8FFFFE
)
>>
1
1
;
i_mux_rate
=
(
U32_AT
(
p_header
+
8
)
&
0x
7FFFFE
)
>>
1
;
}
/* Call the pace control. */
input_ClockManageRef
(
p_input
,
p_input
->
stream
.
pp_programs
[
0
],
...
...
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