raw: move buffer size check up.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 7 Mar 2012 00:08:10 +0000 (16:08 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 7 Mar 2012 17:36:32 +0000 (09:36 -0800)
commitcc5dd632cecc5114717d0b90f8c2be162b1c6ee8
tree4a53d0322714144bc916d4221694f5062bbf61f0
parentf1320dc3bed281bb2f3c5531c52b6a6246e2394a
raw: move buffer size check up.

This way, it protects against overreads for 4bpp/2bpp content also.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/rawdec.c