You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avutil/opt: add missing case for AV_OPT_TYPE_CHLAYOUT in av_opt_free()
Fixes potential memleaks for existing options of this type. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
		| @@ -1729,6 +1729,10 @@ void av_opt_free(void *obj) | ||||
|             av_dict_free((AVDictionary **)(((uint8_t *)obj) + o->offset)); | ||||
|             break; | ||||
|  | ||||
|         case AV_OPT_TYPE_CHLAYOUT: | ||||
|             av_channel_layout_uninit((AVChannelLayout *)(((uint8_t *)obj) + o->offset)); | ||||
|             break; | ||||
|  | ||||
|         default: | ||||
|             break; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user