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
c75b8695
Commit
c75b8695
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: rename screen_changed to buffer_changed
parent
8fd7f03c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ccaption_dec.c
libavcodec/ccaption_dec.c
+5
-5
No files found.
libavcodec/ccaption_dec.c
View file @
c75b8695
...
...
@@ -123,7 +123,7 @@ typedef struct CCaptionSubContext {
uint8_t
cursor_color
;
uint8_t
cursor_font
;
AVBPrint
buffer
;
int
screen
_changed
;
int
buffer
_changed
;
int
rollup
;
enum
cc_mode
mode
;
int64_t
start_time
;
...
...
@@ -365,7 +365,7 @@ static void handle_edm(CCaptionSubContext *ctx, int64_t pts)
reap_screen
(
ctx
,
pts
);
screen
->
row_used
=
0
;
ctx
->
screen
_changed
=
1
;
ctx
->
buffer
_changed
=
1
;
}
static
void
handle_eoc
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
...
...
@@ -458,7 +458,7 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
ff_dlog
(
ctx
,
"carriage return
\n
"
);
reap_screen
(
ctx
,
pts
);
roll_up
(
ctx
);
ctx
->
screen
_changed
=
1
;
ctx
->
buffer
_changed
=
1
;
ctx
->
cursor_column
=
0
;
break
;
case
0x2f
:
...
...
@@ -512,7 +512,7 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp
continue
;
else
process_cc608
(
ctx
,
avpkt
->
pts
,
*
(
bptr
+
i
+
1
)
&
0x7f
,
*
(
bptr
+
i
+
2
)
&
0x7f
);
if
(
ctx
->
screen
_changed
&&
*
ctx
->
buffer
.
str
)
if
(
ctx
->
buffer
_changed
&&
*
ctx
->
buffer
.
str
)
{
int
start_time
=
av_rescale_q
(
ctx
->
start_time
,
avctx
->
time_base
,
ass_tb
);
int
end_time
=
av_rescale_q
(
ctx
->
end_time
,
avctx
->
time_base
,
ass_tb
);
...
...
@@ -521,7 +521,7 @@ static int decode(AVCodecContext *avctx, void *data, int *got_sub, AVPacket *avp
if
(
ret
<
0
)
return
ret
;
sub
->
pts
=
av_rescale_q
(
ctx
->
start_time
,
avctx
->
time_base
,
AV_TIME_BASE_Q
);
ctx
->
screen
_changed
=
0
;
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