You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/graphparser: remove '\n' from parse_filter
this allow a filter to be written like this:
aformat =
    sample_fmts  = fltp|flt:
    sample_rates = 44100|44800
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
			
			
This commit is contained in:
		| @@ -165,12 +165,12 @@ static int parse_filter(AVFilterContext **filt_ctx, const char **buf, AVFilterGr | ||||
|                         int index, void *log_ctx) | ||||
| { | ||||
|     char *opts = NULL; | ||||
|     char *name = av_get_token(buf, "=,;[\n"); | ||||
|     char *name = av_get_token(buf, "=,;["); | ||||
|     int ret; | ||||
|  | ||||
|     if (**buf == '=') { | ||||
|         (*buf)++; | ||||
|         opts = av_get_token(buf, "[],;\n"); | ||||
|         opts = av_get_token(buf, "[],;"); | ||||
|     } | ||||
|  | ||||
|     ret = create_filter(filt_ctx, graph, index, name, opts, log_ctx); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user