hwdec: add a AVBufferRef(AVHWDeviceContext) field

This makes "generic" interaction with libav* components easier.
This commit is contained in:
wm4
2017-01-16 15:31:54 +01:00
parent 348c610b68
commit bbdecb792a
2 changed files with 5 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ struct mp_hwdec_ctx {
// HWDEC_CUDA: CUcontext*
void *ctx;
// libavutil-wrapped context, if available.
struct AVBufferRef *av_device_ref; // AVVAAPIDeviceContext*
// List of IMGFMT_s, terminated with 0. NULL if N/A.
int *supported_formats;