dxva: support DXGI_FORMAT_420_OPAQUE decoding

Multimedia / FFmpeg - wm4 [googlemail.com] - 27 June 2017 12:05 EDT

Some devices (some phones, apparently) will support only this opaque format. Of course this won't work with CLI, because copying data directly is not supported.

Automatic frame allocation (setting AVCodecContext.hw_device_ctx) does not support this mode, even if it's the only supported mode. But since opaque surfaces are generally less useful, that's probably ok.

Merges Libav commit 5030e3856c2126fb829edb828f5aae011d178eb4.

8d7fdba dxva: support DXGI_FORMAT_420_OPAQUE decoding
libavcodec/dxva2.c | 13 +++++++++++--
libavutil/hwcontext_d3d11va.c | 12 ++++++++++--
libavutil/hwcontext_d3d11va.h | 4 ++++
3 files changed, 25 insertions(+), 4 deletions(-)

  • Share