h264: do not use 422 functions for monochrome
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 6 Jan 2014 07:25:36 +0000 (08:25 +0100)
commita03a642d5ceb5f2f7c6ebbf56ff365dfbcdb65eb
treec030c23ab383f313b633dcea9ef20d89ae4668d9
parent9eef9eb3014b2ed9c3ff4aac510a9f04edb555cf
h264: do not use 422 functions for monochrome

Fixes invalid memory access.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
libavcodec/arm/h264dsp_init_arm.c
libavcodec/h264dsp.c
libavcodec/h264pred.c
libavcodec/ppc/h264dsp.c
libavcodec/x86/h264_intrapred_init.c
libavcodec/x86/h264dsp_init.c