libmp4: fix segfault
commitc70140142089ffd7512bbe9addc6e7f09a732da8
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 29 Oct 2014 15:38:09 +0000 (29 15:38 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 1 Nov 2014 14:53:07 +0000 (1 15:53 +0100)
tree0aaa2d9597bbce51b337e698b2ae5ec5b2a204aa
parentcd11c84d8b6ab635158886b17879e591b9abe2e6
libmp4: fix segfault

Le 28/10/2014 23:11, Frédéric Yhuel a écrit :
>  static int MP4_NextBox( stream_t *p_stream, MP4_Box_t *p_box )
>  {
> -    MP4_Box_t box;
> +    MP4_Box_t box = {0};
>
>      if( !p_box )
>      {
>

Better fail early. (untested, no sample)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mp4/libmp4.c