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

Simplify.

The previous commit "accidentally" worked around Drew Yao's first integer overflow.
parent 3a628275
...@@ -1683,8 +1683,7 @@ static int MP4_ReadBox_padb( stream_t *p_stream, MP4_Box_t *p_box ) ...@@ -1683,8 +1683,7 @@ static int MP4_ReadBox_padb( stream_t *p_stream, MP4_Box_t *p_box )
MP4_GET4BYTES( p_box->data.p_padb->i_sample_count ); MP4_GET4BYTES( p_box->data.p_padb->i_sample_count );
count = p_box->data.p_padb->i_sample_count; count = (p_box->data.p_padb->i_sample_count + 1) / 2;
count = (count + 1) / 2;
p_box->data.p_padb->i_reserved1 = calloc( count, sizeof(uint16_t) ); p_box->data.p_padb->i_reserved1 = calloc( count, sizeof(uint16_t) );
p_box->data.p_padb->i_pad2 = calloc( count, sizeof(uint16_t) ); p_box->data.p_padb->i_pad2 = calloc( count, sizeof(uint16_t) );
......
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