mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-15 21:50:37 +08:00
[jpegd]: add information if input img format may be png
in some case,user may think of png bitstream as jpeg. and file suffixes can also easily lead to misunderstandings, so add warning to prevention is necessary. Change-Id: I2ed319033706b2ef48c8b34c6cdc77098137827c Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
This commit is contained in:
@@ -44,6 +44,8 @@ static RK_S32 jpegd_find_marker(const RK_U8 **pbuf_ptr, const RK_U8 *buf_end)
|
||||
if ((v == 0xff) && (v2 >= 0xc0) && (v2 <= 0xfe) && buf_ptr < buf_end) {
|
||||
val = *buf_ptr++;
|
||||
goto found;
|
||||
} else if ((v == 0x89) && (v2 == 0x50)) {
|
||||
mpp_log("input img maybe png format,check it\n");
|
||||
}
|
||||
skipped++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user