diff --git a/home/lg/org_qt/gst-plugins-good-1.4.5/gst/isomp4/qtdemux.c b/qtdemux.c
index ae1491e..e563789 100644
--- a/home/lg/org_qt/gst-plugins-good-1.4.5/gst/isomp4/qtdemux.c
+++ b/qtdemux.c
@@ -11212,7 +11212,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream,
   name = gst_structure_get_name (s);
   if (g_str_has_prefix (name, "audio/x-raw")) {
     stream->need_clip = TRUE;
-    stream->max_buffer_size = 4096 * stream->bytes_per_frame;
+    stream->max_buffer_size = stream->rate * stream->bytes_per_frame;
     GST_DEBUG ("setting max buffer size to %d", stream->max_buffer_size);
   }
   return caps;
