avcodec/rawdec: Fix palette handling with changing palettes
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 4 Aug 2016 10:26:41 +0000 (12:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Aug 2016 16:40:56 +0000 (18:40 +0200)
commit19d2921bbfec13c7a843bdbdb5687cf821b02cff
tree3fb02bf2b1121b3b045287718c530a4fe75fea99
parente160064d39d5f08a1b206660b6ad8855acb8897d
avcodec/rawdec: Fix palette handling with changing palettes

Fixes out of array access

Fixes: poc.swf
Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 6aa39080ccea2b60433e920417844c3a3c0da50b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rawdec.c