Extend the frei0r filter syntax.
Make it accept the frei0r=filtername=params as alternative to frei0r=filtername:params. Originally committed as revision 25856 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									f8608dcac3
								
							
						
					
					
						commit
						f51aeedd41
					
				@ -293,7 +293,7 @@ header and configure FFmpeg with --enable-frei0r.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
The filter supports the syntax:
 | 
					The filter supports the syntax:
 | 
				
			||||||
@example
 | 
					@example
 | 
				
			||||||
@var{filter_name}:@var{param1}:@var{param2}:...:@var{paramN}
 | 
					@var{filter_name}[@{:|=@}@var{param1}:@var{param2}:...:@var{paramN}]
 | 
				
			||||||
@end example
 | 
					@end example
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@var{filter_name} is the name to the frei0r effect to load. If the
 | 
					@var{filter_name} is the name to the frei0r effect to load. If the
 | 
				
			||||||
 | 
				
			|||||||
@ -277,11 +277,11 @@ static av_cold int frei0r_init(AVFilterContext *ctx,
 | 
				
			|||||||
static av_cold int filter_init(AVFilterContext *ctx, const char *args, void *opaque)
 | 
					static av_cold int filter_init(AVFilterContext *ctx, const char *args, void *opaque)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    Frei0rContext *frei0r = ctx->priv;
 | 
					    Frei0rContext *frei0r = ctx->priv;
 | 
				
			||||||
    char dl_name[1024];
 | 
					    char dl_name[1024], c;
 | 
				
			||||||
    *frei0r->params = 0;
 | 
					    *frei0r->params = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (args)
 | 
					    if (args)
 | 
				
			||||||
        sscanf(args, "%1023[^:]:%255c", dl_name, frei0r->params);
 | 
					        sscanf(args, "%1023[^:=]%c%255c", dl_name, &c, frei0r->params);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return frei0r_init(ctx, dl_name, F0R_PLUGIN_TYPE_FILTER);
 | 
					    return frei0r_init(ctx, dl_name, F0R_PLUGIN_TYPE_FILTER);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user