[h264d]: Fix MVC decoding error

Layer id and view id information setting to hardware SPS, RPS should be
cleaned for each frame, otherwise the base layer will encountered error
for some MVC bistream.

Change-Id: I830768ad65fba1be6ab6bf4092d938c6134a288d
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
This commit is contained in:
Johnson Ding
2022-12-27 11:43:56 +08:00
committed by Herman Chen
parent 3c90e68fb8
commit cce925058a

View File

@@ -263,7 +263,14 @@ void fill_picparams(H264dVideoCtx_t *p_Vid, DXVA_PicParams_H264_MVC *pp)
}
pp->RefPicLayerIdList[i] = dpb_info[i].voidx;
}
} else {
pp->num_views_minus1 = 0;
pp->curr_layer_id = dec_pic->layer_id;
memset(pp->view_id, 0, sizeof(pp->view_id));
memset(pp->ViewIDList, 0, sizeof(pp->ViewIDList));
memset(pp->RefPicLayerIdList, 0, sizeof(pp->RefPicLayerIdList));
}
p_Vid->spspps_update = 0;
}