ffaudioresample: Add padding to output buffer. Fixes #573649

The internal resampling functions seem to require a slightly bigger buffer
for output than what we require. Therefore we give it an extra 64bytes (although
16 should have been enough).
This commit is contained in:
Edward Hervey 2009-03-06 12:47:12 +01:00
parent c389f49295
commit df6fb6867e

View file

@ -197,7 +197,9 @@ gst_ffmpegaudioresample_transform_size (GstBaseTransform * trans,
return FALSE;
conv = gst_util_uint64_scale (size, outrate * outchanns, inrate * inchanns);
*othersize = (guint) conv;
/* Adding padding to the output buffer size, since audio_resample's internal
* methods might write a bit further. */
*othersize = (guint) conv + 64;
GST_DEBUG_OBJECT (trans, "Transformed size from %d to %d", size, *othersize);