You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/vf_paletteuse: Remove redundant freeing code
AVFilter.uninit is called automatically if init fails. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		| @@ -1076,11 +1076,8 @@ static av_cold int init(AVFilterContext *ctx) | ||||
|  | ||||
|     s->last_in  = av_frame_alloc(); | ||||
|     s->last_out = av_frame_alloc(); | ||||
|     if (!s->last_in || !s->last_out) { | ||||
|         av_frame_free(&s->last_in); | ||||
|         av_frame_free(&s->last_out); | ||||
|     if (!s->last_in || !s->last_out) | ||||
|         return AVERROR(ENOMEM); | ||||
|     } | ||||
|  | ||||
|     s->set_frame = set_frame_lut[s->color_search_method][s->dither]; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user