Commit fbb9d1fc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

mp4: avoid assignment as predicate

parent 12efcaae
......@@ -529,11 +529,12 @@ static int MP4_ReadBox_ftyp( stream_t *p_stream, MP4_Box_t *p_box )
MP4_GETFOURCC( p_box->data.p_ftyp->i_major_brand );
MP4_GET4BYTES( p_box->data.p_ftyp->i_minor_version );
if( ( p_box->data.p_ftyp->i_compatible_brands_count = i_read / 4 ) )
p_box->data.p_ftyp->i_compatible_brands_count = i_read / 4;
if( p_box->data.p_ftyp->i_compatible_brands_count > 0 )
{
uint32_t *tab = p_box->data.p_ftyp->i_compatible_brands =
calloc( p_box->data.p_ftyp->i_compatible_brands_count,
sizeof(uint32_t));
vlc_alloc( p_box->data.p_ftyp->i_compatible_brands_count,
sizeof(uint32_t) );
if( unlikely( tab == NULL ) )
MP4_READBOX_EXIT( 0 );
......
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