level: Don't read over the end of the input memory
authorSebastian Dröge <sebastian@centricular.com>
Thu, 12 Mar 2015 13:49:56 +0000 (13:49 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 12 Mar 2015 13:51:56 +0000 (13:51 +0000)
commit7b90bf32150897a141a29a12ecab555d8c5b7fab
treeda0a110770ac8f45b48cce412a60691e74d68ef1
parentc809bcd3942ddba72103dbd63d182d8489402820
level: Don't read over the end of the input memory

Previously we advanced the in_data pointer by bps for every channel, and then
later again for block_size*bps. This caused us to be one sample further than
expected if an input buffer covered two analysis frames. And in the end lead
to completely bogus values reported by level.

https://bugzilla.gnome.org/show_bug.cgi?id=746065
gst/level/gstlevel.c