[vlc-devel] [PATCH] libmp4: fix segfault
Frédéric Yhuel
yhuelf at gmail.com
Wed Oct 29 19:22:27 CET 2014
On Wed, Oct 29, 2014 at 5:38 PM, Francois Cartegnie <fcvlcdev at free.fr> wrote:
> 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)
>
It seems better indeed. You can test it with the following stream
(play it to the end):
http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_72.ism/Manifest
Best regards,
Frédéric
More information about the vlc-devel
mailing list