You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/vf_fieldhint: Reorder operation to prevent hypothetical integer overflow
Fixes CID1355110 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		| @@ -174,8 +174,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) | ||||
|  | ||||
|     switch (s->mode) { | ||||
|     case 0: | ||||
|         top    = s->frame[1 + tf - outlink->frame_count]; | ||||
|         bottom = s->frame[1 + bf - outlink->frame_count]; | ||||
|         top    = s->frame[tf - outlink->frame_count + 1]; | ||||
|         bottom = s->frame[bf - outlink->frame_count + 1]; | ||||
|         break; | ||||
|     case 1: | ||||
|         top    = s->frame[1 + tf]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user