ad_pcm: fix crash at EOF
commitc1c68a6914e54a16ad99dcc60833210fca4bb64a
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 15 May 2010 02:47:06 +0000 (15 05:47 +0300)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Sat, 15 May 2010 02:52:00 +0000 (15 05:52 +0300)
tree9a3d517ea59bcc93992f10d474fa43f0eb130276
parent584b43e9f80c924eac1c13ee8f45e0f5c0b48840
ad_pcm: fix crash at EOF

Fix use of unsigned type where negative values were needed. When
playing a file with multichannel PCM audio the bug could result in the
channel reorder function scrambling memory at the end of playback,
causing a crash.
libmpcodecs/ad_pcm.c