From d28be197da8342d6cfd553c4199eb2e92bb71e28 Mon Sep 17 00:00:00 2001 From: Pu Cheng Date: Fri, 20 Nov 2026 07:52:54 +0800 Subject: [PATCH] decoder: Clear sequence display extension flag on reset impeg2d_api_reset() did not clear u1_seq_disp_extn_present. If the stream decoded before the reset had a sequence display extension and the stream after it has none, IMPEG2D_CMD_CTL_GET_SEQ_INFO kept returning the colour description and display size of the previous stream instead of the unspecified values a new decoder returns. --- decoder/impeg2d_api_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/decoder/impeg2d_api_main.c b/decoder/impeg2d_api_main.c index 4f517e5..44ab2ca 100644 --- a/decoder/impeg2d_api_main.c +++ b/decoder/impeg2d_api_main.c @@ -1075,6 +1075,7 @@ IV_API_CALL_STATUS_T impeg2d_api_reset(iv_obj_t *ps_dechdl, ps_dec_state->aps_ref_pics[1] = NULL; ps_dec_state->ps_deint_pic = NULL; memset(ps_dec_state->as_recent_fld, 0, sizeof(ps_dec_state->as_recent_fld)); + ps_dec_state->u1_seq_disp_extn_present = 0; } } else