Mercurial > mplayer.hg
changeset 35149:fbe4b3716aa0
Silence a few warnings.
A little bit more compact code and removing "warning: comparison between signed and unsigned integer expressions".
author | iive |
---|---|
date | Thu, 11 Oct 2012 22:10:48 +0000 |
parents | 89660feadcce |
children | 4683218a0324 |
files | libmpcodecs/vd_hmblck.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_hmblck.c Thu Oct 11 22:06:42 2012 +0000 +++ b/libmpcodecs/vd_hmblck.c Thu Oct 11 22:10:48 2012 +0000 @@ -35,12 +35,10 @@ LIBVD_EXTERN(hmblck) static void de_macro_y(unsigned char* dst,unsigned char* src,int dstride,int w,int h){ - unsigned int y; + int y,x,i; // descramble Y plane for (y=0; y<h; y+=16) { - unsigned int x; for (x=0; x<w; x+=16) { - unsigned int i; for (i=0; i<16; i++) { memcpy(dst + x + (y+i)*dstride, src, 16); src+=16; @@ -50,12 +48,10 @@ } static void de_macro_uv(unsigned char* dstu,unsigned char* dstv,unsigned char* src,int dstride,int w,int h){ - unsigned int y; + int y,x,i; // descramble U/V plane for (y=0; y<h; y+=16) { - unsigned int x; for (x=0; x<w; x+=8) { - unsigned int i; for (i=0; i<16; i++) { int idx=x + (y+i)*dstride; dstu[idx+0]=src[0]; dstv[idx+0]=src[1];