[FFmpeg-cvslog] sws: Fix warning: ‘abase’ may be used uninitialized in ?==?UTF-8?Q?this function

Michael Niedermayer git at videolan.org
Fri Nov 18 22:10:57 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 18 21:51:29 2011 +0100| [6ed000c8e6e8a5f55433b2d67e21bcba2ebc4b5d] | committer: Michael Niedermayer

sws: Fix  warning: ‘abase’ may be used uninitialized in this function

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6ed000c8e6e8a5f55433b2d67e21bcba2ebc4b5d
---

 libswscale/yuv2rgb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index eb478e2..c2c9090 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -615,7 +615,7 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4], int
     uint8_t *y_table;
     uint16_t *y_table16;
     uint32_t *y_table32;
-    int i, base, rbase, gbase, bbase, abase, needAlpha;
+    int i, base, rbase, gbase, bbase, av_uninit(abase), needAlpha;
     const int yoffs = fullRange ? 384 : 326;
 
     int64_t crv =  inv_table[0];



More information about the ffmpeg-cvslog mailing list