mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-08 18:40:03 +08:00
[mpeg2d]: Fix split flag config
Signed-off-by: Herman Chen <herman.chen@rock-chips.com> Change-Id: I7fbdc07c67522d2e23b2d3d54c28cecfa15991d4
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user