OSDN Git Service

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, 22 Apr 2015 10:02:25 +0000 (12:02 +0200)
commitafc7748d1f6abc4b3b1cc957b0fa6941837db3d0
tree85fde17abbe3120cfea0b82a80578f53007ed674
parentf82ce6aa882b6ccb5727c4357e4862ad11acd229
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>
libavcodec/alsdec.c