Browse Source

avcodec: use ARRAY_SIZE instead of custom code

(cherry picked from commit 28c80ee47e)
cherry-pick-c5513cf9
Steve Lhomme 4 years ago
committed by Jean-Baptiste Kempf
parent
commit
b2b54eb1ef
  1. 2
      modules/codec/avcodec/audio.c

2
modules/codec/avcodec/audio.c

@ -558,7 +558,7 @@ vlc_fourcc_t GetVlcAudioFormat( int fmt )
[AV_SAMPLE_FMT_FLTP] = VLC_CODEC_FL32,
[AV_SAMPLE_FMT_DBLP] = VLC_CODEC_FL64,
};
if( (sizeof(fcc) / sizeof(fcc[0])) > (unsigned)fmt )
if( ARRAY_SIZE(fcc) > (unsigned)fmt )
return fcc[fmt];
return VLC_CODEC_S16N;
}

Loading…
Cancel
Save