You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/vf_lut3d: actually skip lines when encountering DOMAIN_ string
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user