diff dvdata.h @ 8042:e70975d5ff80 libavcodec

uses FF_ARRAY_ELEMS() where appropriate
author aurel
date Tue, 21 Oct 2008 21:40:24 +0000
parents 07d8986fbea7
children 4eac1822bc65
line wrap: on
line diff
--- a/dvdata.h	Mon Oct 20 16:05:29 2008 +0000
+++ b/dvdata.h	Tue Oct 21 21:40:24 2008 +0000
@@ -6386,7 +6386,7 @@
        return &dv_profiles[2];
    }
 
-   for (i=0; i<sizeof(dv_profiles)/sizeof(DVprofile); i++)
+   for (i=0; i<FF_ARRAY_ELEMS(dv_profiles); i++)
        if (dsf == dv_profiles[i].dsf && stype == dv_profiles[i].video_stype)
            return &dv_profiles[i];
 
@@ -6397,7 +6397,7 @@
 {
     int i;
 
-    for (i=0; i<sizeof(dv_profiles)/sizeof(DVprofile); i++)
+    for (i=0; i<FF_ARRAY_ELEMS(dv_profiles); i++)
        if (codec->height == dv_profiles[i].height && codec->pix_fmt == dv_profiles[i].pix_fmt &&
            codec->width  == dv_profiles[i].width)
                return &dv_profiles[i];