Ticket #10759: d3d12va_vp9.diff

File d3d12va_vp9.diff, 433 bytes (added by Aleksoid1978, 3 years ago)

Possible solution for VP9

  • libavcodec/d3d12va_vp9.c

    diff --git a/libavcodec/d3d12va_vp9.c b/libavcodec/d3d12va_vp9.c
    index bb94e18781..2ec6264121 100644
    a b static int d3d12va_vp9_decode_init(AVCodecContext *avctx)  
    148148        break;
    149149    };
    150150
    151     ctx->max_num_ref = FF_ARRAY_ELEMS(pp.frame_refs) + 1;
     151    ctx->max_num_ref = FF_ARRAY_ELEMS(pp.frame_refs) + 3;
    152152
    153153    return ff_d3d12va_decode_init(avctx);
    154154}