GNOME Bugzilla – Bug 321427
audioresample does invalid writes
Last modified: 2005-12-09 15:33:40 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.
This doesn't cause any problems now, presumably it was fixed by wim's audioresample rewrite.