You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter: update filter timeline state only on main link
At present, consume_update evaluates timeline state on all links for a multi-input filter. This can lead to the filter being incorrectly en/dis-abled when evaluation on a frame on a secondary link leads to a different result than the frame on the current main link next in line for processing.
This commit is contained in:
		| @@ -1436,7 +1436,8 @@ static void consume_update(FilterLinkInternal *li, const AVFrame *frame) | |||||||
|     AVFilterLink *const link = &li->l; |     AVFilterLink *const link = &li->l; | ||||||
|     update_link_current_pts(li, frame->pts); |     update_link_current_pts(li, frame->pts); | ||||||
|     ff_inlink_process_commands(link, frame); |     ff_inlink_process_commands(link, frame); | ||||||
|     link->dst->is_disabled = !ff_inlink_evaluate_timeline_at_frame(link, frame); |     if (link == link->dst->inputs[0]) | ||||||
|  |         link->dst->is_disabled = !ff_inlink_evaluate_timeline_at_frame(link, frame); | ||||||
|     link->frame_count_out++; |     link->frame_count_out++; | ||||||
|     link->sample_count_out += frame->nb_samples; |     link->sample_count_out += frame->nb_samples; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user