vf_frei0r: do not increment string if it reached the end
Bug-Id: 778 CC: libav-stable@libav.org
This commit is contained in:
		
				
					committed by
					
						
						Luca Barbato
					
				
			
			
				
	
			
			
			
						parent
						
							1fd55ec507
						
					
				
				
					commit
					bbb86717b3
				
			@@ -149,6 +149,7 @@ static int set_params(AVFilterContext *ctx, const char *params)
 | 
				
			|||||||
        if (*params) {
 | 
					        if (*params) {
 | 
				
			||||||
            if (!(param = av_get_token(¶ms, "|")))
 | 
					            if (!(param = av_get_token(¶ms, "|")))
 | 
				
			||||||
                return AVERROR(ENOMEM);
 | 
					                return AVERROR(ENOMEM);
 | 
				
			||||||
 | 
					            if (*params)
 | 
				
			||||||
                params++;               /* skip ':' */
 | 
					                params++;               /* skip ':' */
 | 
				
			||||||
            ret = set_param(ctx, info, i, param);
 | 
					            ret = set_param(ctx, info, i, param);
 | 
				
			||||||
            av_free(param);
 | 
					            av_free(param);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user