]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mxf.c
vf_yadif: add an option to enable/disable deinterlacing based on src frame "interlace...
[ffmpeg] / libavformat / mxf.c
index 6192368da031ec3f2e8ba00218aba3710783001f..029486f6d85b4acab4c5dbf88dad654a4458e196 100644 (file)
@@ -19,6 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/common.h"
 #include "mxf.h"
 
 /**
@@ -80,7 +81,7 @@ static const struct {
     {PIX_FMT_PAL8,    {'P', 8                                           }},
 };
 
-static const int num_pixel_layouts = sizeof(ff_mxf_pixel_layouts) / sizeof(*ff_mxf_pixel_layouts);
+static const int num_pixel_layouts = FF_ARRAY_ELEMS(ff_mxf_pixel_layouts);
 
 int ff_mxf_decode_pixel_layout(const char pixel_layout[16], enum PixelFormat *pix_fmt)
 {