Finalize the device context before use. This function must be called after
the context is filled with all the required information and before it is
used in any way.
@param ref a reference to the AVHWDeviceContext
@return 0 on success, a negative AVERROR code on failure
Finalize the device context before use. This function must be called after the context is filled with all the required information and before it is used in any way.
@param ref a reference to the AVHWDeviceContext @return 0 on success, a negative AVERROR code on failure