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
e521a32a
Commit
e521a32a
authored
Jan 09, 2016
by
Aman Gupta
Committed by
Clément Bœsch
Jan 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/ccaption_dec: clear buffer before populating with screen contents
parent
7def844b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ccaption_dec.c
libavcodec/ccaption_dec.c
+1
-1
No files found.
libavcodec/ccaption_dec.c
View file @
e521a32a
...
...
@@ -280,6 +280,7 @@ static int reap_screen(CCaptionSubContext *ctx, int64_t pts)
int
ret
=
0
;
struct
Screen
*
screen
=
ctx
->
screen
+
ctx
->
active_screen
;
ctx
->
start_time
=
ctx
->
startv_time
;
av_bprint_clear
(
&
ctx
->
buffer
);
for
(
i
=
0
;
screen
->
row_used
&&
i
<
SCREEN_ROWS
;
i
++
)
{
...
...
@@ -521,7 +522,6 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp
return
ret
;
sub
->
pts
=
av_rescale_q
(
ctx
->
start_time
,
avctx
->
time_base
,
AV_TIME_BASE_Q
);
ctx
->
buffer_changed
=
0
;
av_bprint_clear
(
&
ctx
->
buffer
);
}
}
...
...
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