mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
media: verisilicon: AV1: Set IDR flag for intra_only frame type
Intra_only frame could be considered as a key frame so Instantaneous
Decoding Refresh (IDR) flag must be set of the both case and not only
for key frames.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reported-by: Jianfeng Liu <liujianfeng1994@gmail.com>
Fixes: 727a400686 ("media: verisilicon: Add Rockchip AV1 decoder")
Cc: stable@vger.kernel.org
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
c5760e35d3
commit
1c1b79f40e
|
|
@ -2018,7 +2018,7 @@ static void rockchip_vpu981_av1_dec_set_parameters(struct hantro_ctx *ctx)
|
|||
!!(ctrls->frame->quantization.flags
|
||||
& V4L2_AV1_QUANTIZATION_FLAG_DELTA_Q_PRESENT));
|
||||
|
||||
hantro_reg_write(vpu, &av1_idr_pic_e, !ctrls->frame->frame_type);
|
||||
hantro_reg_write(vpu, &av1_idr_pic_e, IS_INTRA(ctrls->frame->frame_type));
|
||||
hantro_reg_write(vpu, &av1_quant_base_qindex, ctrls->frame->quantization.base_q_idx);
|
||||
hantro_reg_write(vpu, &av1_bit_depth_y_minus8, ctx->bit_depth - 8);
|
||||
hantro_reg_write(vpu, &av1_bit_depth_c_minus8, ctx->bit_depth - 8);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user