[vlc-devel] [vlc-commit] avcodec: fix memory leak

Hannes Domani ssbssa at yahoo.de
Sun Dec 6 14:25:54 CET 2015


Hello

KO Myung-Hun <komh78 at gmail.com> schrieb am 4:34 Sonntag, 6.Dezember 2015:
> This commit causes SIGSEGV in avcodec_plugin when playing a media or
> seeking.
> 
> Hannes Domani wrote:
> >  end:
> >           *pp_block = NULL;
> >   drop:
> > +    av_frame_free(&frame);
> >           if( p_block != NULL )
> >                   block_Release(p_block);
> >           return NULL;

I'm pretty sure that you have to add this in 2.2, but I can't test it:


@@ -449,7 +450,9 @@ block_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block )
end:
     *pp_block = NULL;
drop:
+#if (LIBAVCODEC_VERSION_MAJOR >= 55)
     av_frame_free(&frame);
+#endif

     if( p_block != NULL )
         block_Release(p_block);
     return NULL;


Regards
Domani Hannes


More information about the vlc-devel mailing list