lavf/qsv_vpp: check the return value of ff_formats_ref()