alsdec: validate time diff index
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 18 Apr 2015 18:09:28 +0000 (20:09 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Apr 2015 22:49:42 +0000 (00:49 +0200)
commitfaf9fe2c224ea81a98afd53e2f0be0a2e13aeca9
tree2c28df071b2faa79a07595f478c2e1261b9d84ee
parent5cd21693440663236fc56a0357a5272740bf2982
alsdec: validate time diff index

If begin is smaller than t, the subtraction 'begin -= t' wraps around,
because begin is unsigned. The same applies for end < t.

This causes segmentation faults.

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