dxva2_h264: set the correct ref frame index in the long slice struct
authorHendrik Leppkes <h.leppkes@gmail.com>
Tue, 22 Apr 2014 13:22:50 +0000 (15:22 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 28 Apr 2014 18:12:44 +0000 (20:12 +0200)
commit2fcef90bee98bffeff1d95b7197738f50c450d86
tree36c2854fd424ffae43489c99556fe8f12f825443
parent1eb57e1d9b59db0aa63348c21bf3290bd3f5efcb
dxva2_h264: set the correct ref frame index in the long slice struct

The latest H.264 DXVA specification states that the index in this
structure should refer to a valid entry in the RefFrameList of the picture
parameter structure, and not to the actual surface index.

Fixes H.264 DXVA2 decoding on recent Intel GPUs (tested on Sandy and Ivy)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/dxva2_h264.c