summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-18 23:39:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-18 23:40:50 +0200
commitfa040c224703a51d8a07ec33354ab47d275c0493 (patch)
tree73c4e677a5a176ea58a5d03d23452f02a58235a0 /libswscale
parent837605704dafdfe7df2a87fd3eac2a8458e3329c (diff)
parentfc1eda543c6ef043300612db90da5cfd972af650 (diff)
downloadffmpeg-streaming-fa040c224703a51d8a07ec33354ab47d275c0493.zip
ffmpeg-streaming-fa040c224703a51d8a07ec33354ab47d275c0493.tar.gz
Merge commit 'fc1eda543c6ef043300612db90da5cfd972af650'
* commit 'fc1eda543c6ef043300612db90da5cfd972af650': swscale: fix sign extensions in yuv planar conversion Conflicts: libswscale/rgb2rgb_template.c See: a07e9d72a1d97dc6a4d57e1f7b708e54e7db83f5 See: a30972609ca39b791ce1e4e5cc6c3dd6cb9c9b12 Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/rgb2rgb_template.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c
index 121f4ef..f9a98a8 100644
--- a/libswscale/rgb2rgb_template.c
+++ b/libswscale/rgb2rgb_template.c
@@ -355,9 +355,9 @@ static inline void yuvPlanartoyuy2_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 = yc[0] + (uc[0] << 8) +
- (yc[1] << 16) + (unsigned)(vc[0] << 24);
+ (yc[1] << 16) + ((unsigned) vc[0] << 24);
uint64_t l = yc[2] + (uc[1] << 8) +
- (yc[3] << 16) + (unsigned)(vc[1] << 24);
+ (yc[3] << 16) + ((unsigned) vc[1] << 24);
*ldst++ = k + (l << 32);
yc += 4;
uc += 2;
@@ -419,9 +419,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) + (unsigned)(yc[1] << 24);
+ (vc[0] << 16) + ((unsigned) yc[1] << 24);
uint64_t l = uc[1] + (yc[2] << 8) +
- (vc[1] << 16) + (unsigned)(yc[3] << 24);
+ (vc[1] << 16) + ((unsigned) yc[3] << 24);
*ldst++ = k + (l << 32);
yc += 4;
uc += 2;
OpenPOWER on IntegriCloud