summaryrefslogtreecommitdiff
path: root/libavcodec/dxva2_h264.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-01-22 13:50:42 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2016-01-23 13:29:46 +0100
commit406f30072e4ecc51c101a27a790bc3cf1a22bad4 (patch)
tree9c77d8feb86be37d840c5b1333cd2163cbabfeee /libavcodec/dxva2_h264.c
parentf502583663eb2cacfd7f5bb29b39420a970d4fb4 (diff)
downloadffmpeg-406f30072e4ecc51c101a27a790bc3cf1a22bad4.tar.gz
dxva2_h264: fix reference field marking in long slice struct
Fixes artifacts in interlaced decoding on old Intel GPUs.
Diffstat (limited to 'libavcodec/dxva2_h264.c')
-rw-r--r--libavcodec/dxva2_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index 2f0311437e..61cce3ae2d 100644
--- a/libavcodec/dxva2_h264.c
+++ b/libavcodec/dxva2_h264.c
@@ -252,7 +252,7 @@ static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice,
else
index = get_refpic_index(pp, ff_dxva2_get_surface_index(avctx, ctx, r->f));
fill_picture_entry(&slice->RefPicList[list][i], index,
- r->reference == PICT_BOTTOM_FIELD);
+ sl->ref_list[list][i].reference == PICT_BOTTOM_FIELD);
for (plane = 0; plane < 3; plane++) {
int w, o;
if (plane == 0 && sl->luma_weight_flag[list]) {