mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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:
parent
c389f49295
commit
df6fb6867e
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue