diff options
author | Mans Rullgard <mans@mansr.com> | 2011-11-26 14:50:23 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-11-26 18:49:51 +0000 |
commit | 171ec812235a5d22fa421242351ee2da5a96c3ba (patch) | |
tree | 1b4333bb451876febdf5ee04371dc089ad1c55e9 /libavcodec | |
parent | e524eadbf8ac568fcab7fa8f9520fad013beb91a (diff) | |
download | ffmpeg-171ec812235a5d22fa421242351ee2da5a96c3ba.tar.gz |
rv34: fix signed multiplication overflow
Multiply by unsigned 0x01010101 to replicate bytes into 32-bit
word.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/rv34.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index 091d49fdb5..098f7b5a24 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -933,7 +933,7 @@ static void rv34_pred_4x4_block(RV34DecContext *r, uint8_t *dst, int stride, int if(itype == VERT_LEFT_PRED) itype = VERT_LEFT_PRED_RV40_NODOWN; } if(!right && up){ - topleft = dst[-stride + 3] * 0x01010101; + topleft = dst[-stride + 3] * 0x01010101u; prev = (uint8_t*)&topleft; } r->h.pred4x4[itype](dst, prev, stride); |