Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
f1cd3a4d
Commit
f1cd3a4d
authored
May 19, 2017
by
François Cartegnie
🤞
Browse files
packetizer: h264: don't increment missing dts
parent
34a57a10
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/packetizer/h264.c
View file @
f1cd3a4d
...
...
@@ -838,7 +838,8 @@ static block_t *OutputPicture( decoder_t *p_dec )
if
(
p_pic
->
i_pts
==
VLC_TS_INVALID
)
{
if
(
p_sys
->
prevdatedpoc
.
pts
>
VLC_TS_INVALID
)
if
(
p_sys
->
prevdatedpoc
.
pts
>
VLC_TS_INVALID
&&
date_Get
(
&
p_sys
->
dts
)
!=
VLC_TS_INVALID
)
{
date_t
pts
=
p_sys
->
dts
;
date_Set
(
&
pts
,
p_sys
->
prevdatedpoc
.
pts
);
...
...
@@ -857,7 +858,8 @@ static block_t *OutputPicture( decoder_t *p_dec )
{
p_pic
->
i_pts
=
p_pic
->
i_dts
;
}
else
if
(
p_sys
->
slice
.
type
==
H264_SLICE_TYPE_I
)
else
if
(
p_sys
->
slice
.
type
==
H264_SLICE_TYPE_I
&&
date_Get
(
&
p_sys
->
dts
)
!=
VLC_TS_INVALID
)
{
/* Hell no PTS on IDR. We're totally blind */
date_t
pts
=
p_sys
->
dts
;
...
...
@@ -898,6 +900,7 @@ static block_t *OutputPicture( decoder_t *p_dec )
if
(
!
p_sys
->
b_discontinuity
)
{
/* save for next pic fixups */
if
(
date_Get
(
&
p_sys
->
dts
)
!=
VLC_TS_INVALID
)
date_Increment
(
&
p_sys
->
dts
,
i_num_clock_ts
);
}
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