# HG changeset patch # User reimar # Date 1306790197 0 # Node ID d494a6d78677a567f9fc639cd64d07edc38a12b4 # Parent 12e6ac943b413850c5b4f6a7ee59ab0283436f1e Use int as type, there is no reason to use char which also causes issues since it may be either signed or unsigned. diff -r 12e6ac943b41 -r d494a6d78677 libmpcodecs/vf_dint.c --- a/libmpcodecs/vf_dint.c Mon May 30 20:59:48 2011 +0000 +++ b/libmpcodecs/vf_dint.c Mon May 30 21:16:37 2011 +0000 @@ -32,7 +32,7 @@ float sense; // first parameter float level; // second parameter unsigned int imgfmt; - char diff; + int diff; uint32_t max; // int dfr; // int rdfr; @@ -73,7 +73,7 @@ vf->priv->diff = 31; mp_msg (MSGT_VFILTER, MSGL_INFO, "Drop-interlaced: %dx%d diff %d / level %u\n", vf->priv->pmpi->width, vf->priv->pmpi->height, - (int)vf->priv->diff, (unsigned int)vf->priv->max); + vf->priv->diff, (unsigned int)vf->priv->max); // vf->priv->rdfr = vf->priv->dfr = 0; vf->priv->was_dint = 0; return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);