ffmpeg/libswscale
Huihui_Huang 6e37545d6b swscale: fix possible lut leak in adapt_colors()
adapt_colors() allocates a SwsLut3D before calling add_convert_pass(). If add_convert_pass() fails, the function returns without freeing the previously allocated lut. Free lut on that error path.

Signed-off-by: Huihui_Huang <hhhuang@smu.edu.sg>
2026-03-17 15:56:40 +08:00
..
aarch64 swscale/aarch64: add NEON rgb32tobgr24 and rgb24tobgr32 conversions 2026-03-04 10:30:08 +00:00
arm all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
loongarch swscale/loongarch: fix LASX YUV2RGB residual for multi-row slices 2026-03-02 13:14:07 +00:00
ppc swscale/swscale_internal: Move altivec parts to ppc/ 2026-02-28 09:56:01 +01:00
riscv swscale/range_convert: saturate output instead of limiting input 2024-12-05 21:10:29 +01:00
tests swscale/tests/swscale: require reference file to perform comparisons 2026-03-14 06:13:19 +00:00
vulkan Revert "swscale/vulkan/ops: move buffer desc setting to helper function" 2026-03-09 12:16:42 +01:00
x86 swscale/x86/ops: add section comments (cosmetic) 2026-03-12 21:02:48 +00:00
alphablend.c swscale/alphablend: don't overread alpha plane on subsampled odd size 2025-07-31 11:32:20 +00:00
bayer_template.c swscale/internal: constify SwsFunc 2024-10-07 19:51:34 +02:00
cms.c all: fix typos found by codespell 2025-08-03 13:48:47 +02:00
cms.h swscale/utils: split off format code into new file 2025-03-14 19:50:44 +01:00
csputils.c swscale/csputils: Remove unused ff_sws_matrix3x3_rmul() 2025-04-03 06:04:57 +02:00
csputils.h swscale/csputils: Remove unused ff_sws_matrix3x3_rmul() 2025-04-03 06:04:57 +02:00
format.c swscale/graph: reintroduce SwsFrame 2026-03-01 21:57:53 +00:00
format.h swscale/graph: reintroduce SwsFrame 2026-03-01 21:57:53 +00:00
gamma.c swscale: rename SwsContext to SwsInternal 2024-10-24 22:50:00 +02:00
graph.c swscale: fix possible lut leak in adapt_colors() 2026-03-17 15:56:40 +08:00
graph.h swscale/graph: allow setup() to return an error code 2026-03-12 21:02:48 +00:00
half2float.c swscale/input: add rgbaf16 input support 2022-08-19 22:09:36 +02:00
hscale.c swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats 2024-12-05 21:10:29 +01:00
hscale_fast_bilinear.c swscale: rename SwsContext to SwsInternal 2024-10-24 22:50:00 +02:00
input.c Revert "swscale: add support for 10/12-bit grayscale MSB pixfmts" 2025-11-06 21:46:41 +01:00
libswscale.v build: Change structure of the linker version script templates 2016-05-29 16:43:11 +02:00
log2_tab.c lsws: duplicate ff_log2_tab 2014-08-12 20:52:21 +02:00
lut3d.c swscale/lut3d: remove unused function 2025-07-22 19:56:34 +02:00
lut3d.h swscale/utils: split off format code into new file 2025-03-14 19:50:44 +01:00
Makefile swscale/ops_dispatch: split off compile/dispatch code from ops.c 2026-03-05 23:34:56 +00:00
ops.c swscale/ops: simplify ff_sws_op_list_print 2026-03-09 11:25:57 +01:00
ops.h swscale/ops_dispatch: infer destination format from SwsOpList 2026-03-12 21:02:48 +00:00
ops_backend.c swscale/ops_dispatch: move on-stack mutation to ops backends 2026-03-05 23:34:56 +00:00
ops_backend.h swscale/ops_backend: allocate block storage up-front 2026-02-19 19:44:46 +00:00
ops_chain.c swscale/ops_chain: Don't pass an aligned union as parameter by value 2026-03-16 20:31:12 +00:00
ops_chain.h swscale/ops_chain: Make ff_op_priv_free clear the freed pointer 2026-03-16 20:31:12 +00:00
ops_dispatch.c swscale/ops_dispatch: move ENOTSUP error to ff_sws_compile_pass() 2026-03-12 21:02:48 +00:00
ops_dispatch.h swscale/ops_dispatch: add helper function to clean up SwsCompiledOp 2026-03-12 21:02:48 +00:00
ops_internal.h swscale/ops_dispatch: split off compile/dispatch code from ops.c 2026-03-05 23:34:56 +00:00
ops_memcpy.c swscale/ops: add SwsOpBackend.hw_format 2026-02-26 14:10:22 +01:00
ops_optimizer.c swscale/ops_optimizer: always clear unused dither components 2026-03-12 21:02:48 +00:00
ops_tmpl_common.c swscale/ops_backend: use in/out_bump[] in process() 2026-03-12 21:02:48 +00:00
ops_tmpl_float.c swscale/ops_chain: allow free callback to take SwsOpPriv 2026-03-12 21:02:48 +00:00
ops_tmpl_int.c swscale/ops_backend: allocate block storage up-front 2026-02-19 19:44:46 +00:00
options.c swscale: add enum SwsScaler, SwsContext.scaler to replace legacy flags 2026-03-12 22:09:04 +01:00
output.c swscale/output: fix integer overflows in chroma in yuv2rgba64_X_c_template() 2026-03-13 02:51:19 +01:00
rgb2rgb.c swscale/rgb2rgb: Remove set-but-unused functions 2026-03-01 23:45:11 +00:00
rgb2rgb.h swscale/rgb2rgb: Remove set-but-unused functions 2026-03-01 23:45:11 +00:00
rgb2rgb_template.c swscale/rgb2rgb: Remove set-but-unused functions 2026-03-01 23:45:11 +00:00
slice.c swscale/slice: fix init of 32 bpc planes 2024-12-16 12:21:55 +01:00
swscale.c swscale/graph: allow setup() to return an error code 2026-03-12 21:02:48 +00:00
swscale.h swscale: mark scale-related SwsFlags as deprecated 2026-03-12 22:09:13 +01:00
swscale_internal.h swscale: explicitly track if a context is "legacy" or not 2026-03-06 19:06:33 +01:00
swscale_unscaled.c swscale/unscaled: fix planarCopyWrapper for float formats with same endianness 2026-03-09 08:22:58 +00:00
swscaleres.rc Add Windows resource file support for shared libraries 2013-12-05 23:42:07 +01:00
utils.c swscale: add enum SwsScaler, SwsContext.scaler to replace legacy flags 2026-03-12 22:09:04 +01:00
version.c lib*/version: Use static_assert for static asserts 2024-03-31 00:08:42 +01:00
version.h swscale: add enum SwsScaler, SwsContext.scaler to replace legacy flags 2026-03-12 22:09:04 +01:00
version_major.h libs: bump major version for all libraries 2025-03-28 14:44:34 -03:00
vscale.c swscale/internal: group user-facing options together 2024-11-21 12:49:56 +01:00
yuv2rgb.c swscale/aarch64: add NEON YUV420P/YUV422P/YUVA420P to RGB conversion 2026-03-02 13:14:07 +00:00