return &dec->vframe_dummy;
}
+ if (kfifo_len(&dec->display_q) > VF_POOL_SIZE) {
+ avs2_print(dec, AVS2_DBG_BUFMGR,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&dec->display_q));
+ return NULL;
+ }
+
if (kfifo_peek(&dec->display_q, &vf))
return vf;
if (hw->recover_flag)
return NULL;
+ if (kfifo_len(&hw->display_q) > VF_POOL_SIZE) {
+ debug_print(hw, PRINT_FLAG_RUN_FLOW,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&hw->display_q));
+ return NULL;
+ }
+
if (kfifo_peek(&hw->display_q, &vf)) {
if (vf) {
if (force_fps & 0x100) {
return &hw->vframe_dummy;
}
+ if (kfifo_len(&hw->display_q) > VF_POOL_SIZE) {
+ dpb_print(DECODE_ID(hw), PRINT_FLAG_VDEC_STATUS,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&hw->display_q));
+ return NULL;
+ }
+
if (kfifo_out_peek(&hw->display_q, (void *)&vf, 2)) {
if (vf[1]) {
vf[0]->next_vf_pts_valid = true;
return &hevc->vframe_dummy;
}
+ if (kfifo_len(&hevc->display_q) > VF_POOL_SIZE) {
+ hevc_print(hevc, H265_DEBUG_BUFMGR,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&hevc->display_q));
+ return NULL;
+ }
if (kfifo_out_peek(&hevc->display_q, (void *)&vf, 2)) {
if (vf[1]) {
if (!hw)
return NULL;
hw->peek_num++;
+
+ if (kfifo_len(&hw->display_q) > VF_POOL_SIZE) {
+ mmjpeg_debug_print(DECODE_ID(hw), PRINT_FLAG_RUN_FLOW,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&hw->display_q));
+ return NULL;
+ }
+
if (kfifo_peek(&hw->display_q, &vf))
return vf;
struct vdec_mpeg12_hw_s *hw =
(struct vdec_mpeg12_hw_s *)vdec->private;
hw->peek_num++;
+
+ if (kfifo_len(&hw->display_q) > VF_POOL_SIZE) {
+ debug_print(DECODE_ID(hw), PRINT_FLAG_RUN_FLOW,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&hw->display_q));
+ return NULL;
+ }
+
if (kfifo_peek(&hw->display_q, &vf))
return vf;
if (!hw)
return NULL;
hw->peek_num++;
+
+ if (kfifo_len(&hw->display_q) > VF_POOL_SIZE) {
+ mmpeg4_debug_print(DECODE_ID(hw), PRINT_FLAG_RUN_FLOW,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&hw->display_q));
+ return NULL;
+ }
+
if (kfifo_peek(&hw->display_q, &vf))
return vf;
if (step == 2)
return NULL;
+ if (kfifo_len(&hw->display_q) > VF_POOL_SIZE) {
+ av1_print(hw, AV1_DEBUG_BUFMGR,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&hw->display_q));
+ return NULL;
+ }
+
if (kfifo_out_peek(&hw->display_q, (void *)&vf, 2)) {
if (vf[1]) {
vf[0]->next_vf_pts_valid = true;
if (step == 2)
return NULL;
+ if (kfifo_len(&pbi->display_q) > VF_POOL_SIZE) {
+ vp9_print(pbi, VP9_DEBUG_BUFMGR,
+ "kfifo len:%d invalid, peek error\n",
+ kfifo_len(&pbi->display_q));
+ return NULL;
+ }
+
if (kfifo_out_peek(&pbi->display_q, (void *)&vf, 2)) {
if (vf[1]) {
vf[0]->next_vf_pts_valid = true;