Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
0ff2de05
Commit
0ff2de05
authored
Sep 03, 2014
by
François Cartegnie
🤞
Browse files
demux: mp4: fix integer overflow (fix #12074)
parent
06d9da98
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/mp4/mp4.c
View file @
0ff2de05
...
...
@@ -982,13 +982,14 @@ end:
continue
;
mtime_t
i_dts
=
MP4_TrackGetDTS
(
p_demux
,
tk
);
p_sys
->
i_pcr
=
__MIN
(
i_dts
,
p_sys
->
i_pcr
);
if
(
!
p_sys
->
b_seekmode
&&
i_dts
>
p_sys
->
i_pcr
+
2
*
CLOCK_FREQ
)
{
msg_Dbg
(
p_demux
,
"that media doesn't look interleaved, will need to seek"
);
p_sys
->
b_seekmode
=
true
;
}
p_sys
->
i_pcr
=
__MIN
(
i_dts
,
p_sys
->
i_pcr
);
p_sys
->
i_time
=
p_sys
->
i_pcr
*
p_sys
->
i_timescale
/
CLOCK_FREQ
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment