OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e524ead
)
rv34: fix signed multiplication overflow
author
Mans Rullgard
<mans@mansr.com>
Sat, 26 Nov 2011 14:50:23 +0000
(14:50 +0000)
committer
Mans Rullgard
<mans@mansr.com>
Sat, 26 Nov 2011 18:49:51 +0000
(18:49 +0000)
Multiply by unsigned 0x01010101 to replicate bytes into 32-bit
word.
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/rv34.c
patch
|
blob
|
history
diff --git
a/libavcodec/rv34.c
b/libavcodec/rv34.c
index
091d49f
..
098f7b5
100644
(file)
--- 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] * 0x01010101
u
;
prev = (uint8_t*)&topleft;
}
r->h.pred4x4[itype](dst, prev, stride);