mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
dxva2_h264: fix reference field marking in long slice struct
Fixes artifacts in interlaced decoding on old Intel GPUs.
This commit is contained in:
parent
f502583663
commit
406f30072e
@ -252,7 +252,7 @@ static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice,
|
|||||||
else
|
else
|
||||||
index = get_refpic_index(pp, ff_dxva2_get_surface_index(avctx, ctx, r->f));
|
index = get_refpic_index(pp, ff_dxva2_get_surface_index(avctx, ctx, r->f));
|
||||||
fill_picture_entry(&slice->RefPicList[list][i], index,
|
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++) {
|
for (plane = 0; plane < 3; plane++) {
|
||||||
int w, o;
|
int w, o;
|
||||||
if (plane == 0 && sl->luma_weight_flag[list]) {
|
if (plane == 0 && sl->luma_weight_flag[list]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user