Mercurial > libavcodec.hg
diff msrledec.c @ 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 | e9d9d946f213 |
| children | 8a65ae8929fb |
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];
