[MPlayer-cvslog] r26955 - in trunk/libmpcodecs: ad_hwac3.c ad_liba52.c
reimar
subversion at mplayerhq.hu
Sun Jun 1 18:40:57 CEST 2008
Author: reimar
Date: Sun Jun 1 18:40:56 2008
New Revision: 26955
Log:
Properly free memory allocate by liba52.
Modified:
trunk/libmpcodecs/ad_hwac3.c
trunk/libmpcodecs/ad_liba52.c
Modified: trunk/libmpcodecs/ad_hwac3.c
==============================================================================
--- trunk/libmpcodecs/ad_hwac3.c (original)
+++ trunk/libmpcodecs/ad_hwac3.c Sun Jun 1 18:40:56 2008
@@ -128,14 +128,17 @@ static int init(sh_audio_t *sh_audio)
}
if(ac3dts_fillbuff(sh_audio) < 0)
{
+ a52_free(a52_state);
mp_msg(MSGT_DECAUDIO, MSGL_ERR, "AC3/DTS sync failed\n");
return 0;
}
+ sh_audio->context = a52_state;
return 1;
}
static void uninit(sh_audio_t *sh)
{
+ a52_free(sh->context);
}
static int control(sh_audio_t *sh,int cmd,void* arg, ...)
Modified: trunk/libmpcodecs/ad_liba52.c
==============================================================================
--- trunk/libmpcodecs/ad_liba52.c (original)
+++ trunk/libmpcodecs/ad_liba52.c Sun Jun 1 18:40:56 2008
@@ -253,6 +253,7 @@ while(sh_audio->channels>0){
static void uninit(sh_audio_t *sh)
{
+ a52_free(a52_state);
}
static int control(sh_audio_t *sh,int cmd,void* arg, ...)
More information about the MPlayer-cvslog
mailing list