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:
a309726
)
yuvPlanartouyvy_c: fix sign extension
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 16 Oct 2012 19:06:24 +0000
(21:06 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 16 Oct 2012 19:06:24 +0000
(21:06 +0200)
Fixes CID732281
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/rgb2rgb_template.c
patch
|
blob
|
history
diff --git
a/libswscale/rgb2rgb_template.c
b/libswscale/rgb2rgb_template.c
index
680d65c
..
3c95f73
100644
(file)
--- a/
libswscale/rgb2rgb_template.c
+++ b/
libswscale/rgb2rgb_template.c
@@
-417,9
+417,9
@@
static inline void yuvPlanartouyvy_c(const uint8_t *ysrc, const uint8_t *usrc,
const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc;
for (i = 0; i < chromWidth; i += 2) {
uint64_t k = uc[0] + (yc[0] << 8) +
- (vc[0] << 16) + (yc[1] << 24);
+ (vc[0] << 16) + (
unsigned)(
yc[1] << 24);
uint64_t l = uc[1] + (yc[2] << 8) +
- (vc[1] << 16) + (yc[3] << 24);
+ (vc[1] << 16) + (
unsigned)(
yc[3] << 24);
*ldst++ = k + (l << 32);
yc += 4;
uc += 2;