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
7def844b
Commit
7def844b
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: centralize buffer_changed=1 into reap_screen
parent
c75b8695
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ccaption_dec.c
libavcodec/ccaption_dec.c
+1
-2
No files found.
libavcodec/ccaption_dec.c
View file @
7def844b
...
@@ -302,6 +302,7 @@ static int reap_screen(CCaptionSubContext *ctx, int64_t pts)
...
@@ -302,6 +302,7 @@ static int reap_screen(CCaptionSubContext *ctx, int64_t pts)
ctx
->
buffer
.
len
-=
2
;
ctx
->
buffer
.
len
-=
2
;
ctx
->
buffer
.
str
[
ctx
->
buffer
.
len
]
=
0
;
ctx
->
buffer
.
str
[
ctx
->
buffer
.
len
]
=
0
;
}
}
ctx
->
buffer_changed
=
1
;
ctx
->
startv_time
=
pts
;
ctx
->
startv_time
=
pts
;
ctx
->
end_time
=
pts
;
ctx
->
end_time
=
pts
;
return
ret
;
return
ret
;
...
@@ -365,7 +366,6 @@ static void handle_edm(CCaptionSubContext *ctx, int64_t pts)
...
@@ -365,7 +366,6 @@ static void handle_edm(CCaptionSubContext *ctx, int64_t pts)
reap_screen
(
ctx
,
pts
);
reap_screen
(
ctx
,
pts
);
screen
->
row_used
=
0
;
screen
->
row_used
=
0
;
ctx
->
buffer_changed
=
1
;
}
}
static
void
handle_eoc
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
static
void
handle_eoc
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
...
@@ -458,7 +458,6 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
...
@@ -458,7 +458,6 @@ static void process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint
ff_dlog
(
ctx
,
"carriage return
\n
"
);
ff_dlog
(
ctx
,
"carriage return
\n
"
);
reap_screen
(
ctx
,
pts
);
reap_screen
(
ctx
,
pts
);
roll_up
(
ctx
);
roll_up
(
ctx
);
ctx
->
buffer_changed
=
1
;
ctx
->
cursor_column
=
0
;
ctx
->
cursor_column
=
0
;
break
;
break
;
case
0x2f
:
case
0x2f
:
...
...
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