diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-02-11 14:57:42 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-02-11 14:57:42 +0000 |
commit | 1e4eb387d4768089cfe8db0141ccc23089694fce (patch) | |
tree | fffcde34865c4498fdf9c297b391d2139c688564 | |
parent | f59f81487439c05d24d712cf7ce60e983fb94117 (diff) | |
download | ffmpeg-1e4eb387d4768089cfe8db0141ccc23089694fce.tar.gz |
Add av_uninit macro to variables to avoid false positive warnings:
libavcodec/msrledec.c: In function ‘ff_msrle_decode’:
libavcodec/msrledec.c:139: warning: ‘pix32’ may be used uninitialized in this function
libavcodec/msrledec.c:138: warning: ‘pix16’ may be used uninitialized in this function
Originally committed as revision 17156 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/msrledec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/msrledec.c b/libavcodec/msrledec.c index b49c19e095..40fec31278 100644 --- a/libavcodec/msrledec.c +++ b/libavcodec/msrledec.c @@ -135,8 +135,8 @@ static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic, int de uint8_t *output, *output_end; const uint8_t* src = data; int p1, p2, line=avctx->height, pos=0, i; - uint16_t pix16; - uint32_t pix32; + uint16_t av_uninit(pix16); + uint32_t av_uninit(pix32); output = pic->data[0] + (avctx->height - 1) * pic->linesize[0]; output_end = pic->data[0] + (avctx->height) * pic->linesize[0]; |