Unit test: VP8/InvalidFileTest implicit conversion from type 'int' of value -45844 (32-bit, signed) to type 'short' changed the value to 19692 (16-bit, signed) BUG=webm:1615 BUG=webm:1644
Unified · Split
| @@ -211,7 +211,7 @@ static void decode_macroblock(VP8D_COMP *pbi, MACROBLOCKD *xd, · 210 unmodified lines | |||
| 211 | vp8_short_inv_walsh4x4(&b->dqcoeff[0], xd->qcoeff); | 211 | vp8_short_inv_walsh4x4(&b->dqcoeff[0], xd->qcoeff); |
| 212 | memset(b->qcoeff, 0, 16 * sizeof(b->qcoeff[0])); | 212 | memset(b->qcoeff, 0, 16 * sizeof(b->qcoeff[0])); |
| 213 | } else { | 213 | } else { |
| 214 | b->dqcoeff[0] = b->qcoeff[0] * xd->dequant_y2[0]; | 214 | b->dqcoeff[0] = (short)(b->qcoeff[0] * xd->dequant_y2[0]); |
| 215 | vp8_short_inv_walsh4x4_1(&b->dqcoeff[0], xd->qcoeff); | 215 | vp8_short_inv_walsh4x4_1(&b->dqcoeff[0], xd->qcoeff); |
| 216 | memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0])); | 216 | memset(b->qcoeff, 0, 2 * sizeof(b->qcoeff[0])); |
| 217 | } | 217 | } |