Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
af878173
Commit
af878173
authored
Aug 08, 2013
by
Rémi Duraffort
Committed by
Jean-Baptiste Kempf
Aug 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg_ts: fix potential array off by one
parent
95f14593
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+3
-3
No files found.
modules/mux/mpeg/ts.c
View file @
af878173
...
...
@@ -557,10 +557,10 @@ static int Open( vlc_object_t *p_this )
{
p_sys
->
pmtmap
[
p_sys
->
i_pmtslots
].
i_pid
=
i_pid
;
p_sys
->
pmtmap
[
p_sys
->
i_pmtslots
].
i_prog
=
p_sys
->
i_num_pmt
-
1
;
if
(
++
p_sys
->
i_pmtslots
>
MAX_PMT_PID
)
if
(
++
p_sys
->
i_pmtslots
>
=
MAX_PMT_PID
)
{
msg_Err
(
p_mux
,
"Number of pids in PMT > %d"
,
MAX_PMT_PID
);
p_sys
->
i_pmtslots
=
MAX_PMT_PID
;
p_sys
->
i_pmtslots
=
MAX_PMT_PID
-
1
;
}
}
}
...
...
@@ -633,7 +633,7 @@ static int Open( vlc_object_t *p_this )
if
(
i_pid
==
0
)
{
if
(
i
>
MAX_PMT
)
if
(
i
>
=
MAX_PMT
)
msg_Err
(
p_mux
,
"Number of PMTs > maximum (%d)"
,
MAX_PMT
);
}
else
...
...
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