avfilter/vf_ocr: check ff_set_common_formats() return value