Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ac7fb43a
Commit
ac7fb43a
authored
Dec 07, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CC: use VLC_TS_INVALID (refs #3135)
parent
55c17a70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/codec/cc.c
modules/codec/cc.c
+3
-3
No files found.
modules/codec/cc.c
View file @
ac7fb43a
...
...
@@ -294,11 +294,11 @@ static block_t *Pop( decoder_t *p_dec )
return
NULL
;
p_block
=
p_sys
->
pp_block
[
i_index
=
0
];
if
(
p_block
->
i_pts
>
0
)
if
(
p_block
->
i_pts
>
VLC_TS_INVALID
)
{
for
(
i
=
1
;
i
<
p_sys
->
i_block
-
1
;
i
++
)
{
if
(
p_sys
->
pp_block
[
i
]
->
i_pts
>
0
&&
p_block
->
i_pts
>
0
&&
if
(
p_sys
->
pp_block
[
i
]
->
i_pts
>
VLC_TS_INVALID
&&
p_block
->
i_pts
>
VLC_TS_INVALID
&&
p_sys
->
pp_block
[
i
]
->
i_pts
<
p_block
->
i_pts
)
p_block
=
p_sys
->
pp_block
[
i_index
=
i
];
}
...
...
@@ -317,7 +317,7 @@ static subpicture_t *Subtitle( decoder_t *p_dec, char *psz_subtitle, char *psz_h
video_format_t
fmt
;
/* We cannot display a subpicture with no date */
if
(
i_pts
==
0
)
if
(
i_pts
<=
VLC_TS_INVALID
)
{
msg_Warn
(
p_dec
,
"subtitle without a date"
);
return
NULL
;
...
...
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