Mercurial > mplayer.hg
changeset 34998:13e5444562fd
Initialize variable.
It may be used uninitialized else.
author | ib |
---|---|
date | Wed, 15 Aug 2012 13:10:16 +0000 |
parents | 5b01e1e9d9ef |
children | b0133d910683 |
files | gui/win32/skinload.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/win32/skinload.c Wed Aug 15 13:02:31 2012 +0000 +++ b/gui/win32/skinload.c Wed Aug 15 13:10:16 2012 +0000 @@ -149,7 +149,7 @@ int src_stride[4] = { 4 * bmp.Width, 0, 0, 0 }; uint8_t *dst[4] = { NULL, NULL, NULL, NULL }; int dst_stride[4]; - enum PixelFormat out_pix_fmt; + enum PixelFormat out_pix_fmt = PIX_FMT_NONE; struct SwsContext *sws; if (skin->desktopbpp == 16) out_pix_fmt = PIX_FMT_RGB555; else if (skin->desktopbpp == 24) out_pix_fmt = PIX_FMT_RGB24;