History

lavc/vvc: Fix overflow in MVD derivation

H.266 (V3) section 7.4.12.8: "The value of lMvd[ compIdx ] shall be in the range of −2^{17} to 2^{17} − 1, inclusive."

Frank Plowman committed 1 year ago

Commit 56419fd1 parent 499896c1 file · +1 −1Browse files

Unified · Split

libavcodec/vvc/ctu.c+1−1
@@ -1493,7 +1493,7 @@ static int hls_merge_data(VVCLocalContext *lc) · 1492 unmodified lines
14931493
14941494 static void hls_mvd_coding(VVCLocalContext *lc, Mv* mvd)
14951495 {
1496− int16_t mv[2];
1496+ int32_t mv[2];
14971497
14981498 for (int i = 0; i < 2; i++) {
14991499 mv[i] = ff_vvc_abs_mvd_greater0_flag(lc);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t