audio: Fix overread in channel positions
authorEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 5 Oct 2011 09:51:07 +0000 (11:51 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 5 Oct 2011 09:51:07 +0000 (11:51 +0200)
commit70d967da7c41cc5e79aa72c5c41a13cf05c2d31f
tree4d20b40461e8ab0b98962c0a2d58ee286c56d9cb
parent1261c08a2fee51c999b690f8b3133a7d7f81b014
audio: Fix overread in channel positions

The array we're writing to is limited to 64 ... but the amount of
input positions might be lower than 64. Therefore use MIN and not
MAX to know how many values to read from the array.
gst-libs/gst/audio/audio.c