Index: ext/ffmpeg/gstffmpegenc.c
===================================================================
RCS file: /cvs/gstreamer/gst-ffmpeg/ext/ffmpeg/gstffmpegenc.c,v
retrieving revision 1.85
diff -c -p -u -p -r1.85 gstffmpegenc.c
--- ext/ffmpeg/gstffmpegenc.c	12 Feb 2006 19:54:16 -0000	1.85
+++ ext/ffmpeg/gstffmpegenc.c	1 Mar 2006 13:41:43 -0000
@@ -617,7 +615,7 @@ gst_ffmpegenc_chain_audio (GstPad * pad,
           (size - in_size) / size);
     }
 
-    outbuf = gst_buffer_new_and_alloc (GST_BUFFER_SIZE (inbuf));
+    outbuf = gst_buffer_new_and_alloc (GST_BUFFER_SIZE (subbuf));
     ret_size = avcodec_encode_audio (ffmpegenc->context,
         GST_BUFFER_DATA (outbuf),
         GST_BUFFER_SIZE (outbuf), (const short int *)
