av_buffersrc_write_frame: add an explicit layout / channels check

fix crash regression

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>