avfilter: avoid direct access to AVFrame.channels

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