Mercurial > mplayer.hg
view fmt-conversion.h @ 28973:9ae8c54007f5
Initialize *srcContext, *dstContext, *outContext to NULL, avoids the warnings:
libswscale/swscale-example.c:60: warning: 'outContext' may be used uninitialized in this function
libswscale/swscale-example.c:60: warning: 'dstContext' may be used uninitialized in this function
libswscale/swscale-example.c:60: warning: 'srcContext' may be used uninitialized in this function
author | diego |
---|---|
date | Thu, 19 Mar 2009 23:33:35 +0000 |
parents | 21efa4282730 |
children | 1d39794263eb |
line wrap: on
line source
#ifndef MPLAYER_FMT_CONVERSION_H #define MPLAYER_FMT_CONVERSION_H #include "libavutil/avutil.h" enum PixelFormat imgfmt2pixfmt(int fmt); int pixfmt2imgfmt(enum PixelFormat pix_fmt); #endif /* MPLAYER_FMT_CONVERSION_H */