ref: 1ddfe902c6fd34f75f91f9fc9b2696f921ca603b
parent: e9d21a4598484a1001c94f61aec135d7e6f56152
parent: 463cea9702e645dd84dadee2a1bb051c23ff4bff
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Wed Feb 19 04:06:38 EST 2020
Merge pull request #3236 from huili2/fix_ubsan_ut_failure fix ubsan failure in UT
--- a/test/decoder/DecUT_DeblockCommon.cpp
+++ b/test/decoder/DecUT_DeblockCommon.cpp
@@ -804,7 +804,7 @@
// Dummy picture list pointers to 1..MAX_DPB_COUNT
// the pointer values don't need to be valid, just different
for (i = 0; i < MAX_DPB_COUNT; i++)
- iFilterPics[0][i] = iFilterPics[1][i] = (PPicture) (iFilterPics + i);
+ iFilterPics[0][i] = iFilterPics[1][i] = (PPicture) (iFilterPics[0] + i);
sFilter.pRefPics[0] = iFilterPics[0];
sFilter.pRefPics[1] = iFilterPics[1];