You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter: add alpha_mode consistency assertion
This commit is contained in:
		| @@ -1081,6 +1081,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame) | ||||
|             av_assert1(frame->format        == link->format); | ||||
|             av_assert1(frame->width         == link->w); | ||||
|             av_assert1(frame->height        == link->h); | ||||
|             if (av_pix_fmt_desc_get(link->format)->flags & AV_PIX_FMT_FLAG_ALPHA) | ||||
|                 av_assert1(frame->alpha_mode == link->alpha_mode); | ||||
|         } | ||||
|  | ||||
|         frame->sample_aspect_ratio = link->sample_aspect_ratio; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user