diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-03-12 18:59:05 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-03-13 15:30:05 +0100 |
commit | 62c8dc46429bd75a27142c142f8c50139d8a0702 (patch) | |
tree | d9f843fd949c1b5301a8edb8a60e978e65bd9e19 /libavfilter | |
parent | 33e997d992ccd4e93b57fa7dfb478fc6a67ce4ac (diff) | |
download | ffmpeg-62c8dc46429bd75a27142c142f8c50139d8a0702.tar.gz |
avfilter/vf_lut3d: actually skip lines when encountering DOMAIN_ string
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_lut3d.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c index b136cda21d..7a294b0761 100644 --- a/libavfilter/vf_lut3d.c +++ b/libavfilter/vf_lut3d.c @@ -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) |