mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter/vf_lut3d: ignore last whitespace when comparing LUT size string
In some situations it might be tab character and in others normal space.
This commit is contained in:
parent
e24a754916
commit
8860d30731
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user