mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-07 21:17:58 +00:00
lavc/vvc: Fix derivation of LmcsMaxBinIdx
Per H.266 (V3) section 7.4.3.19, LmcsMaxBinIdx is set equal to 15 - lmcs_delta_max_bin_idx. The previous code instead had it equal to 15 - lmcs_min_bin_idx. This could cause decoder mismatches. Signed-off-by: Frank Plowman <post@frankplowman.com>
This commit is contained in:
parent
699322519c
commit
499896ca2f
@ -742,7 +742,7 @@ static int lmcs_derive_lut(VVCLMCS *lmcs, const H266RawAPS *rlmcs, const H266Raw
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
lmcs->min_bin_idx = rlmcs->lmcs_min_bin_idx;
|
||||
lmcs->max_bin_idx = LMCS_MAX_BIN_SIZE - 1 - rlmcs->lmcs_min_bin_idx;
|
||||
lmcs->max_bin_idx = LMCS_MAX_BIN_SIZE - 1 - rlmcs->lmcs_delta_max_bin_idx;
|
||||
|
||||
memset(cw, 0, sizeof(cw));
|
||||
for (int i = lmcs->min_bin_idx; i <= lmcs->max_bin_idx; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user