OSDN Git Service

avcodec/d3d11va: use the proper slice index
authorSteve Lhomme <robux4@videolabs.io>
Wed, 5 Oct 2016 10:52:15 +0000 (12:52 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 10 Oct 2016 14:05:14 +0000 (16:05 +0200)
commit9b462a0b9df6260f59726c98d8aef8b07a1e442b
treef4073baa8150bba93b2ac24fbdb0c9353482718b
parent1bda0ee5305598f6658d3e49bdca2dd9f78a0ba4
avcodec/d3d11va: use the proper slice index

The slice index expected by D3D11VA is the one from the texture not from the
array or texture/slices.

In VLC the slices we provide the decoder don't start from 0 and thus pictures
appear in bogus order. With possible crashes and corruptions when using an
invalid index.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dxva2.c
libavcodec/dxva2_internal.h
libavcodec/version.h