diff base64.c @ 581:95c9067ebb73 libavutil

uses FF_ARRAY_ELEMS() where appropriate
author aurel
date Tue, 21 Oct 2008 21:40:24 +0000
parents 29eecf0241bd
children 44245be3bdcb
line wrap: on
line diff
--- a/base64.c	Tue Oct 21 14:57:55 2008 +0000
+++ b/base64.c	Tue Oct 21 21:40:24 2008 +0000
@@ -51,7 +51,7 @@
     v = 0;
     for (i = 0; in[i] && in[i] != '='; i++) {
         unsigned int index= in[i]-43;
-        if (index>=(sizeof(map2)/sizeof(map2[0])) || map2[index] == 0xff)
+        if (index>=FF_ARRAY_ELEMS(map2) || map2[index] == 0xff)
             return -1;
         v = (v << 6) + map2[index];
         if (i & 3) {