diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-11-11 13:36:45 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-11-11 13:36:45 +0100 |
commit | 8860d307311aec5e0f97b12405da8f8b3d2e0c60 (patch) | |
tree | 315f201ac2e6934b4afe26d25e958281e78dc261 /libavfilter/vf_lut3d.c | |
parent | e24a754916be0f51de9183d2c7eedbe51a185f5b (diff) | |
download | ffmpeg-8860d307311aec5e0f97b12405da8f8b3d2e0c60.tar.gz |
avfilter/vf_lut3d: ignore last whitespace when comparing LUT size string
In some situations it might be tab character and in others normal space.
Diffstat (limited to 'libavfilter/vf_lut3d.c')
-rw-r--r-- | libavfilter/vf_lut3d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_lut3d.c b/libavfilter/vf_lut3d.c index 1beaf5ac4e..e7601a05ac 100644 --- a/libavfilter/vf_lut3d.c +++ b/libavfilter/vf_lut3d.c @@ -384,7 +384,7 @@ static int parse_cube(AVFilterContext *ctx, FILE *f) float max[3] = {1.0, 1.0, 1.0}; while (fgets(line, sizeof(line), f)) { - if (!strncmp(line, "LUT_3D_SIZE ", 12)) { + if (!strncmp(line, "LUT_3D_SIZE", 11)) { int i, j, k; const int size = strtol(line + 12, NULL, 0); @@ -1027,7 +1027,7 @@ static int parse_cube_1d(AVFilterContext *ctx, FILE *f) float max[3] = {1.0, 1.0, 1.0}; while (fgets(line, sizeof(line), f)) { - if (!strncmp(line, "LUT_1D_SIZE ", 12)) { + if (!strncmp(line, "LUT_1D_SIZE", 11)) { const int size = strtol(line + 12, NULL, 0); int i; |