ffmpeg: dxva2_h264: set the correct ref frame index in the long slice struct
authorHendrik Leppkes <h.leppkes@gmail.com>
Sat, 2 Mar 2013 10:15:29 +0000 (10:15 +0000)
committerAnton Fedchin <afedchin@ruswizards.com>
Fri, 7 Mar 2014 17:18:49 +0000 (21:18 +0400)
commite7b64acb3a7947d77e50d5bd89c1d5ec1bc396f0
treee630eeb8c75e0788b84a068eebe349065f477e5f
parent1cba4792eb65ca760f9a50bdc21ab7893898d41d
ffmpeg: 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)
lib/ffmpeg/libavcodec/dxva2_h264.c
lib/ffmpeg/patches/0069-dxva2_h264-set-the-correct-ref-frame-index-in-the-long-slice-struct.patch [new file with mode: 0644]