mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-30 04:02:07 +08:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user