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
d64fe951
Commit
d64fe951
authored
Jan 05, 2016
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/ccaption_dec: fix always true condition
No idea why this wasn't ever detected by a static analyzer.
parent
04826b7f
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 @
d64fe951
...
@@ -455,7 +455,7 @@ static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8
...
@@ -455,7 +455,7 @@ static int process_cc608(CCaptionSubContext *ctx, int64_t pts, uint8_t hi, uint8
int
ret
=
0
;
int
ret
=
0
;
if
(
hi
==
ctx
->
prev_cmd
[
0
]
&&
lo
==
ctx
->
prev_cmd
[
1
])
{
if
(
hi
==
ctx
->
prev_cmd
[
0
]
&&
lo
==
ctx
->
prev_cmd
[
1
])
{
/* ignore redundant command */
/* ignore redundant command */
}
else
if
(
(
hi
==
0x10
&&
(
lo
>=
0x40
||
lo
<=
0x5f
))
||
}
else
if
(
(
hi
==
0x10
&&
(
lo
>=
0x40
&&
lo
<=
0x5f
))
||
(
(
hi
>=
0x11
&&
hi
<=
0x17
)
&&
(
lo
>=
0x40
&&
lo
<=
0x7f
)
)
)
{
(
(
hi
>=
0x11
&&
hi
<=
0x17
)
&&
(
lo
>=
0x40
&&
lo
<=
0x7f
)
)
)
{
handle_pac
(
ctx
,
hi
,
lo
);
handle_pac
(
ctx
,
hi
,
lo
);
}
else
if
(
(
hi
==
0x11
&&
lo
>=
0x20
&&
lo
<=
0x2f
)
||
}
else
if
(
(
hi
==
0x11
&&
lo
>=
0x20
&&
lo
<=
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