From 078b4aab4144420df7fd3e1282c6415aa951ec92 Mon Sep 17 00:00:00 2001 From: Johnson Ding Date: Mon, 29 Mar 2021 15:51:10 +0800 Subject: [PATCH] [mpeg4]: Fix split conflict problem For Linux platform running Gstreamer, enable need_split may conflict with bitstream parser within Gstreamer. Change-Id: I8616e173cbae43aaf8fc18aec4dbd680ad38bdf8 Signed-off-by: Johnson Ding --- mpp/codec/dec/mpg4/mpg4d_api.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mpp/codec/dec/mpg4/mpg4d_api.c b/mpp/codec/dec/mpg4/mpg4d_api.c index 6a910e91..a872d8fd 100644 --- a/mpp/codec/dec/mpg4/mpg4d_api.c +++ b/mpp/codec/dec/mpg4/mpg4d_api.c @@ -90,7 +90,11 @@ static MPP_RET mpg4d_init(void *dec, ParserCfg *cfg) p->frame_slots = cfg->frame_slots; p->packet_slots = cfg->packet_slots; p->task_count = 2; +#ifdef __ANDROID__ p->need_split = 1;//cfg->need_split; +#else + p->need_split = cfg->cfg->base.split_parse; +#endif p->internal_pts = cfg->cfg->base.internal_pts; p->stream = stream; p->stream_size = stream_size;