lavfi/vf_libplacebo: handle multiple inputs
This commit still relies on a single input for PTS determination, to be changed in the next commit.
This commit is contained in:
		
							parent
							
								
									56e550b264
								
							
						
					
					
						commit
						0eb37c2419
					
				@ -979,11 +979,13 @@ static int libplacebo_activate(AVFilterContext *ctx)
 | 
			
		||||
    AVFilterLink *outlink = ctx->outputs[0];
 | 
			
		||||
    int64_t pts;
 | 
			
		||||
 | 
			
		||||
    FF_FILTER_FORWARD_STATUS_BACK(outlink, in->link);
 | 
			
		||||
    FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
 | 
			
		||||
    pl_log_level_update(s->log, get_log_level());
 | 
			
		||||
 | 
			
		||||
    if ((ret = handle_input(ctx, in)) < 0)
 | 
			
		||||
        return ret;
 | 
			
		||||
    for (int i = 0; i < s->nb_inputs; i++) {
 | 
			
		||||
        if ((ret = handle_input(ctx, &s->inputs[i])) < 0)
 | 
			
		||||
            return ret;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (ff_outlink_frame_wanted(outlink)) {
 | 
			
		||||
        if (s->fps.num) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user