avdevice/decklink: refactor ff_decklink_set_format function