From 0bde2a4fc837eebfbcf5553c4c1a9d455e0ce083 Mon Sep 17 00:00:00 2001 From: Suyog Pawar Date: Tue, 6 Aug 2024 12:15:07 +0530 Subject: [PATCH] libavc: Fix poc counts for idr slice Test: Build Change-Id: Ic9212b86efbc54724c09164776169bfeafb15d7b --- decoder/ih264d_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decoder/ih264d_utils.c b/decoder/ih264d_utils.c index ffb575a..a6eea60 100644 --- a/decoder/ih264d_utils.c +++ b/decoder/ih264d_utils.c @@ -172,8 +172,8 @@ WORD32 ih264d_decode_pic_order_cnt(UWORD8 u1_is_idr_slice, /* POC TYPE 0 */ if(u1_is_idr_slice) { - ps_prev_poc->i4_pic_order_cnt_msb = 0; - ps_prev_poc->i4_pic_order_cnt_lsb = 0; + ps_cur_poc->i4_pic_order_cnt_msb = 0; + ps_cur_poc->i4_pic_order_cnt_lsb = 0; } if(ps_prev_poc->u1_mmco_equalto5) {