[FFmpeg-devel] [PATCH]Remove unused parameter from rotozoom.c

Michael Niedermayer michaelni
Wed Jul 22 02:38:05 CEST 2009


On Tue, Jul 21, 2009 at 12:45:38PM +0200, Carl Eugen Hoyos wrote:
> icc claims that the parameter "num" of gen_image() is unused.
>
> Ok to apply?
>
> Carl Eugen

>  rotozoom.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 676864895d1ab2df3bf57c9e99c0f36fc702be8f  patchrotozoom.diff
> Index: tests/rotozoom.c
> ===================================================================
> --- tests/rotozoom.c	(revision 19472)
> +++ tests/rotozoom.c	(working copy)
> @@ -195,7 +195,7 @@
>      return (((1<<16) - frac_y)*s0 + frac_y*s1)>>24;
>  }
>  
> -static void gen_image(int num, int w, int h)
> +static void gen_image(int w, int h)
>  {
>    const int c = h_cos [teta];
>    const int s = h_sin [teta];

maybe teta should be calcuated from i or passed instead of being a
global ...

ahh and its theta not teta

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090722/972faa18/attachment.pgp>



More information about the ffmpeg-devel mailing list