1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
FFmpeg/libswscale
Niklas Haas 4ec45aca36 swscale/utils: fix leak on threaded ctx init failure
This count gets incremented after init succeeds, when it should be
incremented after *alloc* succeeds. Otherwise, we leak the context on
failure.

There are no negative consequences of incrementing for
allocated-but-not-initialized contexts, as the only functions that
reference it will, in the worst case, simply behave as if called on
allocated-but-not-initialized contexts, which is in line with expected
behavior when sws_init_context() fails.
2024-07-14 13:48:59 +02:00
..
aarch64 swscale/aarch64: Add argb/abgr to yuv 2024-07-05 16:32:31 +08:00
arm
loongarch swscale: [loongarch] Fix undeclared functions prob. 2024-05-31 02:20:23 +02:00
ppc swscale/ppc/swscale_ppc_template: Reindent after the previous commit 2024-04-04 16:47:21 +02:00
riscv riscv: probe for Zbb extension at load time 2024-06-11 20:12:37 +03:00
tests swscale/tests/swscale: Add help text 2024-02-15 23:07:44 +01:00
x86 swscale/x86/yuv2rgb: Detemplatize 2024-07-10 12:25:32 +02:00
alphablend.c
bayer_template.c
gamma.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
half2float.c
hscale_fast_bilinear.c
hscale.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
input.c
libswscale.v
log2_tab.c
Makefile
options.c all: use designated initializers for AVOption.unit 2024-02-14 14:53:41 +01:00
output.c swscale/output: Avoid undefined overflow in yuv2rgb_write_full() 2024-06-26 20:49:36 +02:00
rgb2rgb_template.c
rgb2rgb.c
rgb2rgb.h
slice.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
swscale_internal.h swscale: remove unconditional #define DITHER1XBPP 2024-07-10 12:25:03 +02:00
swscale_unscaled.c
swscale.c swscale/swscale: Use ptrdiff_t for linesize computations 2024-07-07 23:36:30 +02:00
swscale.h
swscaleres.rc
utils.c swscale/utils: fix leak on threaded ctx init failure 2024-07-14 13:48:59 +02:00
version_major.h libs: bump major version for all libraries 2024-03-07 11:29:43 -03:00
version.c lib*/version: Use static_assert for static asserts 2024-03-31 00:08:42 +01:00
version.h Bump after 7.0 branch point 2024-03-27 01:04:54 +01:00
vscale.c avutil/common: Don't auto-include mem.h 2024-03-31 00:08:43 +01:00
yuv2rgb.c swscale: prevent undefined behaviour in the PUTRGBA macro 2024-07-10 18:10:10 +02:00