changeset 8803:096ab16191a9 libavcodec

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
author diego
date Wed, 11 Feb 2009 14:57:42 +0000
parents 7b81aa80ec46
children ba83a0c57e9f
files msrledec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/msrledec.c	Wed Feb 11 14:55:24 2009 +0000
+++ b/msrledec.c	Wed Feb 11 14:57:42 2009 +0000
@@ -135,8 +135,8 @@
     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];