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
5695c853
Commit
5695c853
authored
Jan 05, 2016
by
Aman Gupta
Committed by
Clément Bœsch
Jan 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/ccaption_dec: remove unused return value from internal functions
parent
b261749f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
ccaption_dec.c
libavcodec/ccaption_dec.c
+6
-13
No files found.
libavcodec/ccaption_dec.c
View file @
5695c853
...
...
@@ -361,24 +361,20 @@ static void handle_pac(CCaptionSubContext *ctx, uint8_t hi, uint8_t lo)
/**
* @param pts it is required to set end time
*/
static
int
handle_edm
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
static
void
handle_edm
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
{
int
ret
=
0
;
struct
Screen
*
screen
=
ctx
->
screen
+
ctx
->
active_screen
;
reap_screen
(
ctx
,
pts
);
screen
->
row_used
=
0
;
ctx
->
screen_changed
=
1
;
return
ret
;
}
static
int
handle_eoc
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
static
void
handle_eoc
(
CCaptionSubContext
*
ctx
,
int64_t
pts
)
{
int
ret
;
ret
=
handle_edm
(
ctx
,
pts
);
handle_edm
(
ctx
,
pts
);
ctx
->
active_screen
=
!
ctx
->
active_screen
;
ctx
->
cursor_column
=
0
;
return
ret
;
}
static
void
handle_delete_end_of_row
(
CCaptionSubContext
*
ctx
,
char
hi
,
char
lo
)
...
...
@@ -416,9 +412,8 @@ static void handle_char(CCaptionSubContext *ctx, char hi, char lo, int64_t pts)
ff_dlog
(
ctx
,
"(%c)
\n
"
,
hi
);
}
static
int
process_cc608
(
CCaptionSubContext
*
ctx
,
int64_t
pts
,
uint8_t
hi
,
uint8_t
lo
)
static
void
process_cc608
(
CCaptionSubContext
*
ctx
,
int64_t
pts
,
uint8_t
hi
,
uint8_t
lo
)
{
int
ret
=
0
;
if
(
hi
==
ctx
->
prev_cmd
[
0
]
&&
lo
==
ctx
->
prev_cmd
[
1
])
{
/* ignore redundant command */
}
else
if
(
(
hi
==
0x10
&&
(
lo
>=
0x40
&&
lo
<=
0x5f
))
||
...
...
@@ -458,7 +453,7 @@ static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8
break
;
case
0x2c
:
/* erase display memory */
ret
=
handle_edm
(
ctx
,
pts
);
handle_edm
(
ctx
,
pts
);
break
;
case
0x2d
:
/* carriage return */
...
...
@@ -471,7 +466,7 @@ static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8
case
0x2f
:
/* end of caption */
ff_dlog
(
ctx
,
"handle_eoc
\n
"
);
ret
=
handle_eoc
(
ctx
,
pts
);
handle_eoc
(
ctx
,
pts
);
break
;
default:
ff_dlog
(
ctx
,
"Unknown command 0x%hhx 0x%hhx
\n
"
,
hi
,
lo
);
...
...
@@ -488,8 +483,6 @@ static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8
/* set prev command */
ctx
->
prev_cmd
[
0
]
=
hi
;
ctx
->
prev_cmd
[
1
]
=
lo
;
return
ret
;
}
static
int
decode
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
got_sub
,
AVPacket
*
avpkt
)
...
...
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