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
45741dd8
Commit
45741dd8
authored
Apr 17, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_lut: fix simplification / off by 1 error
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1de7dcb4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vf_lut.c
libavfilter/vf_lut.c
+3
-3
No files found.
libavfilter/vf_lut.c
View file @
45741dd8
...
...
@@ -286,9 +286,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
outrow
=
outrow0
;
for
(
j
=
0
;
j
<
w
;
j
++
)
{
switch
(
lut
->
step
)
{
case
3
:
outrow
[
3
]
=
tab
[
3
][
inrow
[
3
]];
// Fall-through
case
2
:
outrow
[
2
]
=
tab
[
2
][
inrow
[
2
]];
// Fall-through
case
1
:
outrow
[
1
]
=
tab
[
1
][
inrow
[
1
]];
// Fall-through
case
4
:
outrow
[
3
]
=
tab
[
3
][
inrow
[
3
]];
// Fall-through
case
3
:
outrow
[
2
]
=
tab
[
2
][
inrow
[
2
]];
// Fall-through
case
2
:
outrow
[
1
]
=
tab
[
1
][
inrow
[
1
]];
// Fall-through
default:
outrow
[
0
]
=
tab
[
0
][
inrow
[
0
]];
}
outrow
+=
lut
->
step
;
...
...
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