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
8c6482b3
Commit
8c6482b3
authored
Apr 02, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder: fix potential NULL dereference
parent
01c1d49b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/input/decoder.c
src/input/decoder.c
+5
-2
No files found.
src/input/decoder.c
View file @
8c6482b3
...
@@ -1065,8 +1065,11 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
...
@@ -1065,8 +1065,11 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
if
(
pi_ts1
&&
*
pi_ts1
>
VLC_TS_INVALID
)
if
(
pi_ts1
&&
*
pi_ts1
>
VLC_TS_INVALID
)
*
pi_ts1
+=
i_es_delay
;
*
pi_ts1
+=
i_es_delay
;
if
(
input_clock_ConvertTS
(
p_clock
,
&
i_rate
,
pi_ts0
,
pi_ts1
,
i_ts_bound
)
)
{
if
(
input_clock_ConvertTS
(
p_clock
,
&
i_rate
,
pi_ts0
,
pi_ts1
,
i_ts_bound
)
)
{
msg_Err
(
p_dec
,
"Could not convert timestamps %"
PRId64
", %"
PRId64
""
,
if
(
pi_ts1
!=
NULL
)
*
pi_ts0
,
*
pi_ts1
);
msg_Err
(
p_dec
,
"Could not convert timestamps %"
PRId64
", %"
PRId64
""
,
*
pi_ts0
,
*
pi_ts1
);
else
msg_Err
(
p_dec
,
"Could not convert timestamp %"
PRId64
,
*
pi_ts0
);
*
pi_ts0
=
VLC_TS_INVALID
;
*
pi_ts0
=
VLC_TS_INVALID
;
}
}
}
}
...
...
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