#define AVI_DEBUG 1
-#define __EVEN( x ) ( (x)&0x01 ? (x)+1 : (x) )
+#define __EVEN( x ) (((x) + 1) & ~1)
static vlc_fourcc_t GetFOURCC( const uint8_t *p_buff )
{
-static struct
+static const struct
{
vlc_fourcc_t i_fourcc;
const char *psz_type;
VLC_UNUSED( p_chk );
}
-static struct
+static const struct
{
vlc_fourcc_t i_fourcc;
int (*AVI_ChunkRead_function)( stream_t *s, avi_chunk_t *p_chk );