wmavoice: validate block alignment
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 1 Jan 2017 21:48:38 +0000 (22:48 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 2 Jan 2017 23:52:55 +0000 (00:52 +0100)
commite8651f51aa46268613b328c60079e16d992e013f
treefd8c214f958f18818441a6adf2ccfd82ebc989b7
parent91e6a64d2ea62edbe1178a65a2376e605f6988d5
wmavoice: validate block alignment

This prevents a division by zero crash in wmavoice_decode_packet.

The problem was introduced by commit
3deb4b54a24f8cddce463d9f5751b01efeb976af.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/wmavoice.c