aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTong Wu <tong1.wu@intel.com>2021-09-08 13:19:50 +0800
committerHendrik Leppkes <h.leppkes@gmail.com>2021-09-14 23:44:42 +0200
commitf31033c6ca4bd88e4bb646bab0bc7fd600d4f8b2 (patch)
tree67409c5f54eaed9f79610c62c24ba13b733ee7ac
parent6b08ed9f956408e9d5ef0339a51258cb2a648042 (diff)
downloadffmpeg-f31033c6ca4bd88e4bb646bab0bc7fd600d4f8b2.tar.gz
avcodec/dxva2_av1: fix superres_denom parameter
Defined in spec 5.9.8. When superres is enabled, SuperresDenom equals "coded_denom + SUPERRES_DENOM_MIN" instead of coded_denom. Signed-off-by: Tong Wu <tong1.wu@intel.com> Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
-rw-r--r--libavcodec/dxva2_av1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxva2_av1.c b/libavcodec/dxva2_av1.c
index aa14e473df..c30b57799c 100644
--- a/libavcodec/dxva2_av1.c
+++ b/libavcodec/dxva2_av1.c
@@ -73,7 +73,7 @@ static int fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *c
pp->max_height = seq->max_frame_height_minus_1 + 1;
pp->CurrPicTextureIndex = ff_dxva2_get_surface_index(avctx, ctx, h->cur_frame.tf.f);
- pp->superres_denom = frame_header->use_superres ? frame_header->coded_denom : AV1_SUPERRES_NUM;
+ pp->superres_denom = frame_header->use_superres ? frame_header->coded_denom + AV1_SUPERRES_DENOM_MIN : AV1_SUPERRES_NUM;
pp->bitdepth = get_bit_depth_from_seq(seq);
pp->seq_profile = seq->seq_profile;