Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
33b2319e
Commit
33b2319e
authored
Jan 18, 2000
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
le bug de input_psi �tait fourbement r�apparu.
parent
eee5172f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/input/input_psi.c
src/input/input_psi.c
+7
-7
No files found.
src/input/input_psi.c
View file @
33b2319e
...
@@ -394,7 +394,7 @@ static void DecodePgrmAssocSection(u8* p_pas, input_thread_t *p_input )
...
@@ -394,7 +394,7 @@ static void DecodePgrmAssocSection(u8* p_pas, input_thread_t *p_input )
for
(
i_pgrm_index
=
0
;
i_pgrm_index
<
i_pgrm_number
;
i_pgrm_index
++
)
for
(
i_pgrm_index
=
0
;
i_pgrm_index
<
i_pgrm_number
;
i_pgrm_index
++
)
{
{
i_pgrm_id
=
U16_AT
(
&
p_pas
[
8
+
4
*
i_pgrm_index
]);
i_pgrm_id
=
U16_AT
(
&
p_pas
[
8
+
4
*
i_pgrm_index
]);
i_pgrm_map_pid
=
U16_AT
(
&
p_pas
[
8
+
4
*
i_pgrm_index
+
2
])
&
0x1
FFF
;
i_pgrm_map_pid
=
U16_AT
(
&
p_pas
[
8
+
4
*
i_pgrm_index
+
2
])
&
0x1
fff
;
intf_DbgMsg
(
"Pgrm %d described on pid %d
\n
"
,
i_pgrm_id
,
intf_DbgMsg
(
"Pgrm %d described on pid %d
\n
"
,
i_pgrm_id
,
i_pgrm_map_pid
);
i_pgrm_map_pid
);
...
@@ -550,13 +550,13 @@ static void DecodePgrmMapSection( u8* p_pms, input_thread_t* p_input )
...
@@ -550,13 +550,13 @@ static void DecodePgrmMapSection( u8* p_pms, input_thread_t* p_input )
intf_DbgMsg
(
"PCR at PID: %d
\n
"
,
p_pgrm
->
i_pcr_pid
);
intf_DbgMsg
(
"PCR at PID: %d
\n
"
,
p_pgrm
->
i_pcr_pid
);
/* Compute the length of the section minus the final CRC */
/* Compute the length of the section minus the final CRC */
i_section_length
=
(
U16_AT
(
&
p_pms
[
1
])
&
0x
FFF
)
+
3
-
4
;
i_section_length
=
(
U16_AT
(
&
p_pms
[
1
])
&
0x
fff
)
+
3
-
4
;
intf_DbgMsg
(
"Section length (without CRC): %d
\n
"
,
i_section_length
);
intf_DbgMsg
(
"Section length (without CRC): %d
\n
"
,
i_section_length
);
/* Read additional info stored in the descriptors if any */
/* Read additional info stored in the descriptors if any */
intf_DbgMsg
(
"Description length for program %d: %d
\n
"
,
intf_DbgMsg
(
"Description length for program %d: %d
\n
"
,
p_pgrm
->
i_number
,
(
U16_AT
(
&
p_pms
[
10
])
&
0x0
FFF
));
p_pgrm
->
i_number
,
(
U16_AT
(
&
p_pms
[
10
])
&
0x0
fff
));
i_descr_end
=
(
U16_AT
(
&
p_pms
[
10
])
&
0x0
FFF
)
+
12
;
i_descr_end
=
(
U16_AT
(
&
p_pms
[
10
])
&
0x0
fff
)
+
12
;
intf_DbgMsg
(
"description ends at offset: %d
\n
"
,
i_descr_end
);
intf_DbgMsg
(
"description ends at offset: %d
\n
"
,
i_descr_end
);
i_offset
=
12
;
i_offset
=
12
;
...
@@ -573,7 +573,7 @@ static void DecodePgrmMapSection( u8* p_pms, input_thread_t* p_input )
...
@@ -573,7 +573,7 @@ static void DecodePgrmMapSection( u8* p_pms, input_thread_t* p_input )
intf_DbgMsg
(
"ES Type: %d
\n
"
,
p_pms
[
i_offset
]);
intf_DbgMsg
(
"ES Type: %d
\n
"
,
p_pms
[
i_offset
]);
/* Read PID of that ES */
/* Read PID of that ES */
i_es_pid
=
U16_AT
(
&
p_pms
[
i_offset
+
1
])
&
0x1
FF
;
i_es_pid
=
U16_AT
(
&
p_pms
[
i_offset
+
1
])
&
0x1
fff
;
intf_DbgMsg
(
"ES PID: %d
\n
"
,
i_es_pid
);
intf_DbgMsg
(
"ES PID: %d
\n
"
,
i_es_pid
);
/* Add the ES to the program description and reserve a slot in the
/* Add the ES to the program description and reserve a slot in the
...
@@ -602,8 +602,8 @@ static void DecodePgrmMapSection( u8* p_pms, input_thread_t* p_input )
...
@@ -602,8 +602,8 @@ static void DecodePgrmMapSection( u8* p_pms, input_thread_t* p_input )
/* Read additional info given by the descriptors */
/* Read additional info given by the descriptors */
i_offset
+=
5
;
i_offset
+=
5
;
intf_DbgMsg
(
"description length for PID %d: %d
\n
"
,
p_es
->
i_id
,
intf_DbgMsg
(
"description length for PID %d: %d
\n
"
,
p_es
->
i_id
,
(
U16_AT
(
&
p_pms
[
i_offset
-
2
])
&
0x0
FFF
));
(
U16_AT
(
&
p_pms
[
i_offset
-
2
])
&
0x0
fff
));
i_descr_end
=
(
U16_AT
(
&
p_pms
[
i_offset
-
2
])
&
0x0
FFF
)
+
i_offset
;
i_descr_end
=
(
U16_AT
(
&
p_pms
[
i_offset
-
2
])
&
0x0
fff
)
+
i_offset
;
intf_DbgMsg
(
"description ends at offset: %d
\n
"
,
i_descr_end
);
intf_DbgMsg
(
"description ends at offset: %d
\n
"
,
i_descr_end
);
while
(
i_offset
<
i_descr_end
)
while
(
i_offset
<
i_descr_end
)
{
{
...
...
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