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
3b60c9da
Commit
3b60c9da
authored
Aug 08, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec: cc: interpolate caption time by decoding speed
caption data rate is 2 bytes per frame at 30 fps
parent
401a3172
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
modules/codec/cc.c
modules/codec/cc.c
+11
-1
No files found.
modules/codec/cc.c
View file @
3b60c9da
...
...
@@ -166,6 +166,8 @@ struct decoder_sys_t
int
i_field
;
int
i_channel
;
mtime_t
i_display_time
;
eia608_t
eia608
;
bool
b_opaque
;
};
...
...
@@ -365,7 +367,10 @@ static subpicture_t *Convert( decoder_t *p_dec, block_t **pp_block )
block_t
*
p_block
=
*
pp_block
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
const
int64_t
i_pts
=
p_block
->
i_pts
;
if
(
p_sys
->
i_display_time
==
VLC_TS_INVALID
)
p_sys
->
i_display_time
=
p_block
->
i_pts
;
eia608_status_t
i_status
=
EIA608_STATUS_DEFAULT
;
/* TODO do the real decoding here */
...
...
@@ -376,10 +381,15 @@ static subpicture_t *Convert( decoder_t *p_dec, block_t **pp_block )
p_block
->
i_buffer
-=
3
;
p_block
->
p_buffer
+=
3
;
p_sys
->
i_display_time
+=
CLOCK_FREQ
/
30
;
}
const
mtime_t
i_pts
=
p_sys
->
i_display_time
;
if
(
p_block
->
i_buffer
<
3
)
{
block_Release
(
p_block
);
p_sys
->
i_display_time
=
VLC_TS_INVALID
;
*
pp_block
=
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