Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
455
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
779c87ea
Commit
779c87ea
authored
7 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
ts: fix invalid casts
parent
01c4cd0f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/demux/mpeg/ts_pid.c
+7
-5
7 additions, 5 deletions
modules/demux/mpeg/ts_pid.c
with
7 additions
and
5 deletions
modules/demux/mpeg/ts_pid.c
+
7
−
5
View file @
779c87ea
...
...
@@ -64,14 +64,16 @@ void ts_pid_list_Release( demux_t *p_demux, ts_pid_list_t *p_list )
struct
searchkey
{
int16_t
i_pid
;
ts_pid_t
**
pp_last
;
ts_pid_t
*
const
*
pp_last
;
};
static
int
ts_bsearch_searchkey_Compare
(
void
*
key
,
void
*
other
)
static
int
ts_bsearch_searchkey_Compare
(
const
void
*
key
,
const
void
*
other
)
{
struct
searchkey
*
p_key
=
(
struct
searchkey
*
)
key
;
ts_pid_t
*
p_pid
=
*
((
ts_pid_t
**
)
other
);
p_key
->
pp_last
=
(
ts_pid_t
**
)
other
;
struct
searchkey
*
p_key
=
(
void
*
)
key
;
ts_pid_t
*
const
*
pp_pid
=
other
;
ts_pid_t
*
p_pid
=
*
pp_pid
;
p_key
->
pp_last
=
other
;
return
(
p_key
->
i_pid
>=
p_pid
->
i_pid
)
?
p_key
->
i_pid
-
p_pid
->
i_pid
:
-
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Rémi Denis-Courmont
@Courmisch
mentioned in commit
957906af
·
2 years ago
mentioned in commit
957906af
mentioned in commit 957906afccb73492809446b0988cabf7f0486134
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment