h264: call alloc_scratch_buffers() only once linesize is known
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 20 Feb 2013 16:25:04 +0000 (17:25 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 20 Feb 2013 18:53:54 +0000 (19:53 +0100)
commit039f55c80333a9db0e64e5c975b0820bff01c5e2
treea281d9f2ad94db166682e9a9fd25aeedc7e3fb7e
parent9b9d996b34aef80dc50b9c60a81e55c979d69a8e
h264: call alloc_scratch_buffers() only once linesize is known

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264.c