[FFmpeg-devel] [PATCH] use FF_ARRAY_ELEMS

Diego Biurrun diego
Tue Oct 21 00:50:28 CEST 2008


On Mon, Oct 20, 2008 at 11:28:00PM +0200, Aurelien Jacobs wrote:
> 
> Attached patch uses FF_ARRAY_ELEMS() where appropriate.
> I verified that the resulting binary is bit identical without or without
> this patch.
> 
> --- ffmpeg.c	(r??vision 15654)
> +++ ffmpeg.c	(copie de travail)
> @@ -1091,7 +1091,7 @@
> -                if(qp>=0 && qp<sizeof(qp_histogram)/sizeof(int))
> +                if(qp>=0 && qp<FF_ARRAY_ELEMS(qp_histogram))

While you're at it, secretly slip in spaces around the '<'. ;-)

Same in other places..

Diego




More information about the ffmpeg-devel mailing list