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
62c8dc46
Commit
62c8dc46
authored
Mar 12, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_lut3d: actually skip lines when encountering DOMAIN_ string
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
33e997d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vf_lut3d.c
libavfilter/vf_lut3d.c
+2
-1
No files found.
libavfilter/vf_lut3d.c
View file @
62c8dc46
...
...
@@ -320,6 +320,7 @@ static int parse_cube(AVFilterContext *ctx, FILE *f)
struct
rgbvec
*
vec
=
&
lut3d
->
lut
[
i
][
j
][
k
];
do
{
try_again
:
NEXT_LINE
(
0
);
if
(
!
strncmp
(
line
,
"DOMAIN_"
,
7
))
{
float
*
vals
=
NULL
;
...
...
@@ -330,7 +331,7 @@ static int parse_cube(AVFilterContext *ctx, FILE *f)
sscanf
(
line
+
11
,
"%f %f %f"
,
vals
,
vals
+
1
,
vals
+
2
);
av_log
(
ctx
,
AV_LOG_DEBUG
,
"min: %f %f %f | max: %f %f %f
\n
"
,
min
[
0
],
min
[
1
],
min
[
2
],
max
[
0
],
max
[
1
],
max
[
2
]);
continue
;
goto
try_again
;
}
}
while
(
skip_line
(
line
));
if
(
sscanf
(
line
,
"%f %f %f"
,
&
vec
->
r
,
&
vec
->
g
,
&
vec
->
b
)
!=
3
)
...
...
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