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 11:15:56 +0000 (12:15 +0100)
commit699e68371ec7e381e5cc48e3d96e29c669261af7
treeb702c266495b2f95198b67ed6c0a82aaccb18254
parent9fcfe4a3cdf9a5af0c37758b178965b7b99582d4
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>
libavcodec/rawdec.c