diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-10 20:33:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-10 20:36:12 +0200 |
commit | 7ded0179832b3d8a2e332d73bd289e47e78c8f34 (patch) | |
tree | 4d9667b40f309d745a73364e4d1ca5cdf9f0fdf4 /libswscale/output.c | |
parent | 4868855b13058896075f583ce17c890f9b70bdb6 (diff) | |
download | ffmpeg-7ded0179832b3d8a2e332d73bd289e47e78c8f34.tar.gz |
sws/output/yuv2gbrp_full_X_c(): silence warning about uninitialized variable
clang did not show this one, so i missed it in the last batch
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/output.c')
-rw-r--r-- | libswscale/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libswscale/output.c b/libswscale/output.c index c6f2ff01a4..a0826d06c2 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -1498,13 +1498,14 @@ yuv2gbrp_full_X_c(SwsContext *c, const int16_t *lumFilter, int hasAlpha = (desc->flags & PIX_FMT_ALPHA) && alpSrc; uint16_t **dest16 = (uint16_t**)dest; int SH = 22 + 7 - desc->comp[0].depth_minus1; + int A = 0; // init to silence warning for (i = 0; i < dstW; i++) { int j; int Y = 1 << 9; int U = (1 << 9) - (128 << 19); int V = (1 << 9) - (128 << 19); - int R, G, B, A; + int R, G, B; for (j = 0; j < lumFilterSize; j++) Y += lumSrc[j][i] * lumFilter[j]; |