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>
Wed, 10 Jun 2015 00:13:10 +0000 (02:13 +0200)
commit1303d8a204d181e5a2db595a74a2fce1d08f22ac
tree9c9c6d6040a1221279b40c8d788025c452c680f1
parent1a87782c2e55753a3b34dc8f1064dc267401cae8
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)

Conflicts:

libavcodec/alsdec.c
(cherry picked from commit 0b5405c443ec8adc3c114e508b71ce2012c83f0d)
libavcodec/alsdec.c