[FFmpeg-cvslog] swscale: fix an implementation-defined unsigned-to-signed conversion
Justin Ruggles
git at videolan.org
Sun Apr 13 01:36:16 CEST 2014
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Apr 5 14:05:19 2014 -0400| [60c4660ba035bbfbcc84ac34129ce40e037c70ad] | committer: Justin Ruggles
swscale: fix an implementation-defined unsigned-to-signed conversion
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60c4660ba035bbfbcc84ac34129ce40e037c70ad
---
libswscale/swscale_unscaled.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 3a956f4..daa6f5f 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -1187,9 +1187,9 @@ int attribute_align_arg sws_scale(struct SwsContext *c,
if (usePal(c->srcFormat)) {
for (i = 0; i < 256; i++) {
- int p, r, g, b, y, u, v;
+ int r, g, b, y, u, v;
if (c->srcFormat == AV_PIX_FMT_PAL8) {
- p = ((const uint32_t *)(srcSlice[1]))[i];
+ uint32_t p = ((const uint32_t *)(srcSlice[1]))[i];
r = (p >> 16) & 0xFF;
g = (p >> 8) & 0xFF;
b = p & 0xFF;
More information about the ffmpeg-cvslog
mailing list