ref: 7783a5baf419999d74f36305f64ee1c58c023eff
parent: 227b4d38aec4bc14fe0a2cfc06b18357cfbfdb9c
author: Martin Storsjö <[email protected]>
date: Sun Mar 22 04:59:02 EDT 2020
Add a cast to avoid MSVC warning This fixes the following warning: ../src/decode.c(666): warning C4244: '=': conversion from 'uint16_t' to 'uint8_t', possible loss of data
--- a/src/decode.c
+++ b/src/decode.c
@@ -663,7 +663,7 @@
b->uvtx = dav1d_max_txfm_size_for_bs[bs][f->cur.p.layout];
}
assert(!(tx_split[0] & ~0x33));
- b->tx_split0 = tx_split[0];
+ b->tx_split0 = (uint8_t)tx_split[0];
b->tx_split1 = tx_split[1];
}