ffmpeg: do not give away our reference to the frame.

Note: the logic here is temporary until the updates to
ffmpeg.c are merged.
avfilter/buffersrc: add back check that layout & channels match

This fixes a regression

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