alsdec: check sample pointer range in revert_channel_correlation
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 21 Apr 2015 17:28:30 +0000 (19:28 +0200)
committerAnton Khirnov <anton@khirnov.net>
Tue, 5 May 2015 19:41:40 +0000 (21:41 +0200)
commit41a89cba6086de2bd24f9ec7e21200fa162505e9
treea6c94e54f1c2523adf42b1a887dab07bcf4971d7
parent7b66cf5ce7fdb8b3fa13459aab3f4d6ab559f1ea
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.

CC: libav-stable@libav.org
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 94bb1ce882a12b6d7a1fa32715a68121b39ee838)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/alsdec.c