wmavoice: limit wmavoice_decode_packet return value to packet size
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 28 Jun 2015 10:40:12 +0000 (12:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 28 Jul 2015 00:42:15 +0000 (02:42 +0200)
commit755c3222e2c6b1f2da47361e5e10df528857f16a
tree8f4fe39b66f69cd53d5bd7c5eaa20f936ea02f75
parentbf44ab5181d42ee74768c32b07128a176d38b0c0
wmavoice: limit wmavoice_decode_packet return value to packet size

Claiming to have decoded more bytes than the packet size is wrong.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 2a4700a4f03280fa8ba4fc0f8a9987bb550f0d1e)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wmavoice.c