[mpeg2d]: Fix split flag config

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I7fbdc07c67522d2e23b2d3d54c28cecfa15991d4
This commit is contained in:
Herman Chen
2022-12-06 10:55:19 +08:00
parent 3c94a1ec43
commit a9c7a6a7ac
2 changed files with 1 additions and 3 deletions

View File

@@ -200,7 +200,6 @@ static MPP_RET m2vd_parser_init_ctx(M2VDParserContext *ctx, ParserCfg *cfg)
ctx->mExtraHeaderDecFlag = 0;
ctx->max_stream_size = M2VD_BUF_SIZE_BITMEM;
ctx->ref_frame_cnt = 0;
ctx->need_split = cfg->cfg->base.split_parse;
ctx->left_length = 0;
ctx->vop_header_found = 0;
@@ -510,7 +509,7 @@ MPP_RET m2vd_parser_prepare(void *ctx, MppPacket pkt, HalDecTask *task)
mpp_packet_set_size(p->input_packet, p->max_stream_size);
}
if (!p->need_split) {
if (!p->cfg->base.split_parse) {
RK_U32 *val = (RK_U32 *)mpp_packet_get_pos(pkt);
/* if input data is rk format styl skip those 32 byte */
RK_S32 offset = (VPU_BITSTREAM_START_CODE == val[0]) ? 32 : 0;

View File

@@ -231,7 +231,6 @@ typedef struct M2VDParserContext_t {
RK_U8 *qp_tab_sw_buf;
RK_U32 max_stream_size;
RK_U32 left_length;
RK_U32 need_split;
RK_U32 state;
RK_U32 vop_header_found;