rawdec: only exempt BIT0 with need_copy from buffer sanity check
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 19 Dec 2015 22:45:06 +0000 (23:45 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sun, 20 Dec 2015 13:18:08 +0000 (14:18 +0100)
commit3219de21f4e9e9bcd09df9dbc5eab63492dd05a4
tree5e46f80166bbda82791c0413e887dbaf1e4b9b38
parent93eda8dcbadfe375a7fe99592e4097c08deb06d1
rawdec: only exempt BIT0 with need_copy from buffer sanity check

Otherwise the too small buffer is directly used in the frame, causing
segmentation faults, when trying to use the frame.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 699e68371ec7e381e5cc48e3d96e29c669261af7)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/rawdec.c