After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321427 - audioresample does invalid writes
audioresample does invalid writes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.9.x
Other Linux
: Normal major
: 0.10.0
Assigned To: David Schleef
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-14 12:39 UTC by Andy Wingo
Modified: 2005-12-09 15:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andy Wingo 2005-11-14 12:39:05 UTC
Originally from bug #310380, Thomas says:

I ported audioresample, it uses basetransform now as well.

Some conversions make it unhappy though.

This one shows an invalid write:

 /home/thomas/gst/head/gstreamer/tools/.libs/lt-gst-launch-0.9 -v sinesrc
num-buffers=2 ! audioresample ! audio/x-raw-int,rate=16000 ! fakesink


This one throws an error, because resample writes more bytes than it was told to
(grep for "bastard" in the log), which also causes an invalid write.

/home/thomas/gst/head/gstreamer/tools/.libs/lt-gst-launch-0.9 -v sinesrc
num-buffers=2 ! audio/x-raw-int,rate=44100 ! audioresample !
audio/x-raw-int,rate=8000 ! fakesink

There are also cases where resample writes less bytes than it reported it was
going to.  The previous pipeline will probably do that for the first buffer, and
then error out on too many bytes on the second.
Comment 1 Michael Smith 2005-12-09 15:33:40 UTC
This doesn't cause any problems now, presumably it was fixed by wim's
audioresample rewrite.