Mercurial > libavcodec.hg
diff imgresample.c @ 8042:e70975d5ff80 libavcodec
uses FF_ARRAY_ELEMS() where appropriate
author | aurel |
---|---|
date | Tue, 21 Oct 2008 21:40:24 +0000 |
parents | 4ce4a18cae8e |
children | 0d108ec85620 |
line wrap: on
line diff
--- a/imgresample.c Mon Oct 20 16:05:29 2008 +0000 +++ b/imgresample.c Tue Oct 21 21:40:24 2008 +0000 @@ -790,7 +790,7 @@ } } save_pgm("/tmp/in.pgm", img, XSIZE, YSIZE); - for(i=0;i<sizeof(factors)/sizeof(float);i++) { + for(i=0;i<FF_ARRAY_ELEMS(factors);i++) { fact = factors[i]; xsize = (int)(XSIZE * fact); ysize = (int)((YSIZE - 100) * fact);