audio: disallow partial samples, fix ad_pcm to comply
commitb21e7dc7a94448066bdcc66287d6c5a68a3e1978
authorUoti Urpala <uau@mplayer2.org>
Sat, 7 May 2011 17:20:13 +0000 (7 20:20 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sat, 7 May 2011 19:17:51 +0000 (7 22:17 +0300)
tree40b81be806f10b0b9be597353e5fadbb436ed533
parentdaafc5a368266dc2206b7da0c107b98e0ca042d6
audio: disallow partial samples, fix ad_pcm to comply

Add some asserts to check that decoders/filters produce complete
samples (byte amounts must be multiples of channels*datatype_size) and
that audio output drivers also accept input in complete units. Fix
ad_pcm which was known to violate this if its last input packet didn't
stop at a sample boundary.
libmpcodecs/ad_pcm.c
mplayer.c