avdevice/decklink: move general code of decklink encoder to common file

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avdevice: add decklink input support

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