Commit d1d351f8 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/vorbis.c: fixed crash on codec cleanup when headers couldn't be decoded.

parent f86dc7ba
......@@ -709,7 +709,7 @@ static void CloseDecoder( vlc_object_t *p_this )
decoder_t *p_dec = (decoder_t *)p_this;
decoder_sys_t *p_sys = p_dec->p_sys;
if( !p_sys->b_packetizer && p_sys->i_headers >= 3 )
if( !p_sys->b_packetizer && p_sys->i_headers > 3 )
{
vorbis_block_clear( &p_sys->vb );
vorbis_dsp_clear( &p_sys->vd );
......
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