avcodec/dnxhddec: treat pix_fmt like width/height
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 28 Oct 2014 23:57:07 +0000 (00:57 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 29 Oct 2014 00:31:49 +0000 (01:31 +0100)
commite3275571c7e27f62eec6ce5b4945c612b1b649b8
tree46a1b3df218f1cddb143dc224939e452fbedaa6c
parent7b7d12ea0448c8418ab086ec8f202a5fb14f54fe
avcodec/dnxhddec: treat pix_fmt like width/height

Fixes out of array accesses
Fixes: asan_heap-oob_22c9a39_16_015.mxf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f3c0e0bf6f53df0977f3878d4f5cec99dff8de9e)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dnxhddec.c