Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
22f64c23
Commit
22f64c23
authored
Jan 19, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ccaption_dec: Fix mixed declarations and code
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
d6b3062b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ccaption_dec.c
libavcodec/ccaption_dec.c
+2
-1
No files found.
libavcodec/ccaption_dec.c
View file @
22f64c23
...
...
@@ -625,13 +625,14 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp
if
(
ctx
->
real_time
&&
ctx
->
screen_touched
&&
avpkt
->
pts
>
ctx
->
last_real_time
+
av_rescale_q
(
20
,
ass_tb
,
avctx
->
time_base
))
{
int
start_time
;
ctx
->
last_real_time
=
avpkt
->
pts
;
ctx
->
screen_touched
=
0
;
capture_screen
(
ctx
);
ctx
->
buffer_changed
=
0
;
int
start_time
=
av_rescale_q
(
avpkt
->
pts
,
avctx
->
time_base
,
ass_tb
);
start_time
=
av_rescale_q
(
avpkt
->
pts
,
avctx
->
time_base
,
ass_tb
);
ret
=
ff_ass_add_rect_bprint
(
sub
,
&
ctx
->
buffer
,
start_time
,
-
1
);
if
(
ret
<
0
)
return
ret
;
...
...
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