diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-09 23:29:41 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-09 23:34:15 +0000 |
commit | 3275981207e30e140cffaea334ac390f1a04266a (patch) | |
tree | 4d1343f93aec88cb908b5c142cd561672b32d30e /libavcodec/libopenjpegdec.c | |
parent | 695e85f1895da2faf7dbc68ab8bf20add1562eed (diff) | |
download | ffmpeg-3275981207e30e140cffaea334ac390f1a04266a.tar.gz |
libopenjpegdec: make use of FF_ARRAY_ELEMS
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/libopenjpegdec.c')
-rw-r--r-- | libavcodec/libopenjpegdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/libopenjpegdec.c b/libavcodec/libopenjpegdec.c index 73e738f85b..5b5d27bc38 100644 --- a/libavcodec/libopenjpegdec.c +++ b/libavcodec/libopenjpegdec.c @@ -92,19 +92,19 @@ static inline enum PixelFormat libopenjpeg_guess_pix_fmt(const opj_image_t *imag switch (image->color_space) { case CLRSPC_SRGB: possible_fmts = libopenjpeg_rgb_pix_fmts; - possible_fmts_nb = sizeof(libopenjpeg_rgb_pix_fmts) / sizeof(enum PixelFormat); + possible_fmts_nb = FF_ARRAY_ELEMS(libopenjpeg_rgb_pix_fmts); break; case CLRSPC_GRAY: possible_fmts = libopenjpeg_gray_pix_fmts; - possible_fmts_nb = sizeof(libopenjpeg_gray_pix_fmts) / sizeof(enum PixelFormat); + possible_fmts_nb = FF_ARRAY_ELEMS(libopenjpeg_gray_pix_fmts); break; case CLRSPC_SYCC: possible_fmts = libopenjpeg_yuv_pix_fmts; - possible_fmts_nb = sizeof(libopenjpeg_yuv_pix_fmts) / sizeof(enum PixelFormat); + possible_fmts_nb = FF_ARRAY_ELEMS(libopenjpeg_yuv_pix_fmts); break; default: possible_fmts = libopenjpeg_all_pix_fmts; - possible_fmts_nb = sizeof(libopenjpeg_all_pix_fmts) / sizeof(enum PixelFormat); + possible_fmts_nb = FF_ARRAY_ELEMS(libopenjpeg_all_pix_fmts); break; } |