[jpegd]: Fix paser error

After pasering SOF makers and DQT, DHT etc, buffer pointer should point
to the position after what has been read. Otherwise, paser will be
finding markers right after the last marker. And may lead to take datas
in DHT or DQT as markers.

Refer to this issue: https://redmine.rockchip.com.cn/issues/212649

Change-Id: Ie4edc8ab43aeedf1678894a9968a1254ca10ac50
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
This commit is contained in:
Johnson Ding
2019-07-10 10:22:49 +08:00
parent 662b64c4ee
commit 7e13df0813

View File

@@ -907,6 +907,8 @@ static MPP_RET jpegd_decode_frame(JpegdCtx *ctx)
start_code);
break;
}
buf_ptr = ctx->bit_ctx->data_;
}
if (!syntax->eoi_found) {