[FFmpeg-devel] [PATCH] avcodec/vvc decode: ALF filtering without CC-ALF

2024-12-02 Thread Chris Warrington via ffmpeg-devel
When a stream has ALF filtering enabled but not CC-ALF, the CC-ALF set indexes alf->ctb_cc_idc are being read uninitialized during ALF filtering. This change initializes alf->ctb_cc_idc whenever ALF is enabled. Ref. https://trac.ffmpeg.org/ticket/11325 --- libavcodec/vvc/ctu.c | 2 +- 1 file c

Re: [FFmpeg-devel] [PATCH] avcodec/vvc decode: ALF filtering without CC-ALF

2024-12-03 Thread Chris Warrington via ffmpeg-devel
Nuo Mi wrote: > This will introduce two writes for all blocks, even if there is no CC ALF. How about checking the sps_ccalf_enabled_flag in ff_vvc_alf_filter? That makes sense too, but I'd think you'd need to check both sps_ccalf_enabled_flag and the slice header sh_alf_cc_cb_enabled_flag/sh_alf