diff libmpcodecs/ad_twin.c @ 27765:03bb6c3945ff

Use av_malloc/av_free for audio-related buffers to avoid crashes due to insufficient alignment on systems without memalign. http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2008-October/058743.html
author reimar
date Sat, 18 Oct 2008 18:54:05 +0000
parents 63630c09e237
children 9e739bdb049c
line wrap: on
line diff
--- a/libmpcodecs/ad_twin.c	Sat Oct 18 16:07:47 2008 +0000
+++ b/libmpcodecs/ad_twin.c	Sat Oct 18 18:54:05 2008 +0000
@@ -138,7 +138,7 @@
     priv->framesize=TvqGetFrameSize();
     sh_audio->audio_in_minsize=priv->framesize*in_fmt->nChannels;
     sh_audio->a_in_buffer_size=4*sh_audio->audio_in_minsize;
-    sh_audio->a_in_buffer=malloc(sh_audio->a_in_buffer_size);
+    sh_audio->a_in_buffer=av_malloc(sh_audio->a_in_buffer_size);
     sh_audio->a_in_buffer_len=0;