FFmpeg/libavcodec/vvc
Frank Plowman e417f939da lavc/vvc: Set fc->ref to NULL at top of decode_nal_units
In the fail: block of decode_nal_units, a check as to whether fc->ref is
nonzero is used.  Before this patch, fc->ref was set to NULL in
frame_context_setup.  The issue is that, by the time frame_context_setup
is called, falliable functions (namely slices_realloc and
ff_vvc_decode_frame_ps) have already been called.  Therefore, there
could arise a situation in which the fc->ref test of decode_nal_units'
fail: block is performed while fc->ref has an invalid value.  This seems
to be particularly prevalent in situations where the FrameContexts are
being reused.  The patch resolves the issue by moving the assignment of
fc->ref to NULL to the very top of decode_nal_units, before any falliable
functions are called.

Signed-off-by: Frank Plowman <post@frankplowman.com>
2025-02-16 11:54:55 +08:00
..
cabac.c lavc/vvc: Use a bitfield to store MIP information 2024-12-07 17:37:45 +08:00
cabac.h
ctu.c lavc/vvc: Fix race condition for MVs cropped to subpic 2025-01-05 20:25:29 +08:00
ctu.h
data.c
data.h
dec.c lavc/vvc: Set fc->ref to NULL at top of decode_nal_units 2025-02-16 11:54:55 +08:00
dec.h lavc/vvcdec: remove unneeded VVCContext->pix_fmt 2025-01-29 18:22:41 +08:00
dsp.c lavc/vvc: Use a bitfield to store MIP information 2024-12-07 17:37:45 +08:00
dsp.h
dsp_template.c
filter.c
filter.h
filter_template.c
inter.c
inter.h
inter_template.c
intra.c
intra.h
intra_template.c lavc/vvc: Use a bitfield to store MIP information 2024-12-07 17:37:45 +08:00
intra_utils.c lavc/vvc: Remove floating point logic 2024-11-11 19:31:00 +08:00
itx_1d.c
itx_1d.h
Makefile
mvs.c lavc/vvc: Don't check motion estimation region for IBC 2024-12-03 10:20:51 +08:00
mvs.h
ps.c lavc/vvcdec: ensure slices contain nonzero CTUs 2025-01-29 18:22:41 +08:00
ps.h
refs.c avcodec/vvc/refs: Check content_ref in set_pict_type() 2025-02-15 11:25:12 +08:00
refs.h avcodec/vvc: Add support for output_corrupt/showall flags 2025-01-19 13:30:13 +08:00
thread.c avcodec/vvc/dec: print thread debug logs only if DEBUG is defined 2025-01-10 10:23:57 -03:00
thread.h