summaryrefslogtreecommitdiff
path: root/libavformat/mxf.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-09-08 14:21:38 +0200
committerDiego Biurrun <diego@biurrun.de>2011-09-08 15:57:14 +0200
commit6376362d15ccbc02e15d0b3b7a7a5d862efd6b91 (patch)
tree16094be11e5a81d1fea45df5700151673aa63200 /libavformat/mxf.c
parent55354b7de21e7bb4bbeb1c12ff55ea17f807c70c (diff)
downloadffmpeg-6376362d15ccbc02e15d0b3b7a7a5d862efd6b91.tar.gz
Employ FF_ARRAY_ELEMS instead of manually calculating array length.
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r--libavformat/mxf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c
index 6192368da0..029486f6d8 100644
--- a/libavformat/mxf.c
+++ b/libavformat/mxf.c
@@ -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)
{