avcodec/takdec: Skip last p2 sample (which is unused)
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 15 Nov 2015 00:22:31 +0000 (01:22 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Dec 2015 11:40:49 +0000 (12:40 +0100)
commit9356635e761a17a76f11c4adcfdd504d1e031a2d
tree661af14f37a9154b7bb5897cef731666af362d75
parent6ba69f60ecb6693074bc7abcad67851a17e36c44
avcodec/takdec: Skip last p2 sample (which is unused)

Fixes out of array read
Fixes: cb3f38b08b4541523974667c7d1eee9e/asan_heap-oob_2659e18_9838_021fd5cd635bf76cede6398cd9ecbcdd.tak

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 08b520636e96ba6888b669b9b3f4c414631ea1d2)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/takdec.c