utils: add workaround for AVHWAccel in ff_get_buffer compat code