diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-13 01:26:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-13 01:26:49 +0200 |
commit | 28875c418886e1576b657882ee2b969de85041a0 (patch) | |
tree | ce73485cdc210515b928f60baa63f9029fc54a26 /libswscale/swscale.c | |
parent | d3284a62082b8224d2a31e050f160ccda9ce2487 (diff) | |
parent | 60c4660ba035bbfbcc84ac34129ce40e037c70ad (diff) | |
download | ffmpeg-28875c418886e1576b657882ee2b969de85041a0.tar.gz |
Merge commit '60c4660ba035bbfbcc84ac34129ce40e037c70ad'
* commit '60c4660ba035bbfbcc84ac34129ce40e037c70ad':
swscale: fix an implementation-defined unsigned-to-signed conversion
Conflicts:
libswscale/swscale_unscaled.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index f529331f0f..cbf1074109 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -952,9 +952,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, a = 0xff; + int r, g, b, y, u, v, a = 0xff; if (c->srcFormat == AV_PIX_FMT_PAL8) { - p = ((const uint32_t *)(srcSlice[1]))[i]; + uint32_t p = ((const uint32_t *)(srcSlice[1]))[i]; a = (p >> 24) & 0xFF; r = (p >> 16) & 0xFF; g = (p >> 8) & 0xFF; |