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
07d957f1
Commit
07d957f1
authored
Aug 03, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cc codec: don't use a static variable in the middle of the code for no reason what so ever.
parent
5f8cd399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/codec/cc.c
modules/codec/cc.c
+5
-3
No files found.
modules/codec/cc.c
View file @
07d957f1
...
...
@@ -155,6 +155,7 @@ struct decoder_sys_t
int
i_block
;
block_t
*
pp_block
[
CC_MAX_REORDER_SIZE
];
int64_t
i_last_pts
;
int
i_field
;
int
i_channel
;
...
...
@@ -206,6 +207,7 @@ static int Open( vlc_object_t *p_this )
/* init of p_sys */
memset
(
p_sys
,
0
,
sizeof
(
*
p_sys
)
);
p_sys
->
i_block
=
0
;
p_sys
->
i_last_pts
=
0
;
p_sys
->
i_field
=
i_field
;
p_sys
->
i_channel
=
i_channel
;
...
...
@@ -391,12 +393,12 @@ static subpicture_t *Convert( decoder_t *p_dec, block_t *p_block )
if
(
p_block
)
block_Release
(
p_block
);
static
int64_t
i_last
=
0
;
if
(
b_changed
)
//&& i_pts -
i_last
> 100*1000 )
p_sys
->
i_last_pts
=
0
;
if
(
b_changed
)
//&& i_pts -
p_sys->i_last_pts
> 100*1000 )
{
char
*
psz_subtitle
=
Eia608Text
(
&
p_sys
->
eia608
,
false
);
char
*
psz_html
=
NULL
;
//Eia608Text( &p_sys->eia608, true );
i_last
=
i_pts
;
p_sys
->
i_last_pts
=
i_pts
;
return
Subtitle
(
p_dec
,
psz_subtitle
,
psz_html
,
i_pts
);
}
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