lut3d: Fix reading 3dl files with leading comments.
Fixes ticket #2787.
This commit is contained in:
parent
ebaf20e94b
commit
42272e86fe
@ -314,8 +314,7 @@ static int parse_3dl(AVFilterContext *ctx, FILE *f)
|
|||||||
const float scale = 16*16*16;
|
const float scale = 16*16*16;
|
||||||
|
|
||||||
lut3d->lutsize = size;
|
lut3d->lutsize = size;
|
||||||
if (!fgets(line, sizeof(line), f))
|
NEXT_LINE(skip_line(line));
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
for (k = 0; k < size; k++) {
|
for (k = 0; k < size; k++) {
|
||||||
for (j = 0; j < size; j++) {
|
for (j = 0; j < size; j++) {
|
||||||
for (i = 0; i < size; i++) {
|
for (i = 0; i < size; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user