alsdec: check sample pointer range in revert_channel_correlation
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 21 Apr 2015 17:25:50 +0000 (19:25 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 May 2015 18:43:36 +0000 (20:43 +0200)
commitaf70697836bbe1e4f0e3cfbdc7f18b23290245b5
tree6623fb353a3c1e58f06a671ff1f9be72d9ab6457
parent836a66eeb05c678feba79c5f7f093d936f9723d2
alsdec: check sample pointer range in revert_channel_correlation

Also change the type of begin, end and smp to ptrdiff_t to make the
comparison well-defined.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit afc7748d1f6abc4b3b1cc957b0fa6941837db3d0)

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