History

dxva2: allow an empty array of ID3D11VideoDecoderOutputView

We can pick the correct slice index directly from the ID3D11VideoDecoderOutputView casted from data[3]. Also added myself as maintainer for DXVA2 and D3D11VA.

Steve Lhomme committed 9 years ago

Commit 8fb48651 parent 153b36f3 files · +5 −4Browse files

Unified · Split

3 files
  1. MAINTAINERS +2 −1
  2. libavcodec/dxva2_internal.h +2 −2
  3. libavcodec/version.h +1 −1
MAINTAINERS+2−1
@@ -260,7 +260,8 @@ Codecs: · 259 unmodified lines
260260
261261 Hardware acceleration:
262262 crystalhd.c Philip Langdale
263− dxva2* Hendrik Leppkes, Laurent Aimar
263+ dxva2* Hendrik Leppkes, Laurent Aimar, Steve Lhomme
264+ d3d11va* Steve Lhomme
264265 mediacodec* Matthieu Bouron
265266 vaapi* Gwenole Beauchesne
266267 vaapi_encode* Mark Thompson
libavcodec/dxva2_internal.h+2−2
@@ -78,7 +78,7 @@ typedef union { · 77 unmodified lines
7878 #define DXVA_CONTEXT_CFG_RESIDACCEL(avctx, ctx) (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD ? ctx->d3d11va.cfg->ConfigResidDiffAccelerator : ctx->dxva2.cfg->ConfigResidDiffAccelerator)
7979 #define DXVA_CONTEXT_VALID(avctx, ctx) (DXVA_CONTEXT_DECODER(avctx, ctx) && \
8080 DXVA_CONTEXT_CFG(avctx, ctx) && \
81− DXVA_CONTEXT_COUNT(avctx, ctx))
81+ (avctx->pix_fmt == AV_PIX_FMT_D3D11VA_VLD || ctx->dxva2.surface_count))
8282 #elif CONFIG_DXVA2
8383 #define DXVA_CONTEXT_WORKAROUND(avctx, ctx) (ctx->dxva2.workaround)
8484 #define DXVA_CONTEXT_COUNT(avctx, ctx) (ctx->dxva2.surface_count)
@@ -98,7 +98,7 @@ typedef union { · 13 unmodified lines
9898 #define DXVA_CONTEXT_CFG_BITSTREAM(avctx, ctx) (ctx->d3d11va.cfg->ConfigBitstreamRaw)
9999 #define DXVA_CONTEXT_CFG_INTRARESID(avctx, ctx) (ctx->d3d11va.cfg->ConfigIntraResidUnsigned)
100100 #define DXVA_CONTEXT_CFG_RESIDACCEL(avctx, ctx) (ctx->d3d11va.cfg->ConfigResidDiffAccelerator)
101−#define DXVA_CONTEXT_VALID(avctx, ctx) (ctx->d3d11va.decoder && ctx->d3d11va.cfg && ctx->d3d11va.surface_count)
101+#define DXVA_CONTEXT_VALID(avctx, ctx) (ctx->d3d11va.decoder && ctx->d3d11va.cfg)
102102 #endif
103103
104104 unsigned ff_dxva2_get_surface_index(const AVCodecContext *avctx,
libavcodec/version.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929
3030 #define LIBAVCODEC_VERSION_MAJOR 57
3131 #define LIBAVCODEC_VERSION_MINOR 72
32−#define LIBAVCODEC_VERSION_MICRO 100
32+#define LIBAVCODEC_VERSION_MICRO 101
3333
3434 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
3535 LIBAVCODEC_VERSION_MINOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t