speexdec: Always process the number of frames per packet as specified in the header
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 14 Mar 2011 18:28:07 +0000 (19:28 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 14 Mar 2011 18:31:33 +0000 (19:31 +0100)
commit4d7b4ca2ae5d0c93cf040107aaa0c1f7c46a66a9
tree1dfa8104dbab788220283947757ebfde63280bad
parent0ed0174ea98923186112458512e5a026ac69716c
speexdec: Always process the number of frames per packet as specified in the header

Looking at the remaining bits in the bitstream after decoding a
single frame can't be used as loop condition. The remaining
bits might not give a complete frame and the speex decoder will
then output nothing but access uninitialized memory, which leads
to valgrind warnings.

Fixes bug #644669.
ext/speex/gstspeexdec.c