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 15:13:52 +0000 (16:13 +0100)
commitb0a8095f2bf0bc03c5d4dfccaba845de6fd5bb4f
tree648c22bb1fcce7e044a419f1dbf1451e74e9b19e
parentf0eea9cc3a112f69991ffba79d6ca224d9eb60f5
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