Commit 482ab047 authored by Filip Roséen's avatar Filip Roséen Committed by Hugo Beauzée-Luyssen

demux/xiph_metadata: use ARRAY_SIZE

increases readability.
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 7ef197a4
......@@ -31,6 +31,7 @@
#include <vlc_common.h>
#include <vlc_charset.h>
#include <vlc_strings.h>
#include <vlc_arrays.h>
#include <vlc_input.h>
#include "xiph_metadata.h"
......@@ -135,7 +136,7 @@ input_attachment_t* ParseFlacPicture( const uint8_t *p_data, size_t size,
p_attachment = vlc_input_attachment_New( name, mime, description, p_data,
size /* XXX: len instead? */ );
if( type < sizeof(pi_cover_score)/sizeof(pi_cover_score[0]) &&
if( type < ARRAY_SIZE(pi_cover_score) &&
*i_cover_score < pi_cover_score[type] )
{
*i_cover_idx = i_attachments;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment