[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:
sliver.chen
2018-03-19 17:20:29 +08:00
parent e11e7e7e76
commit eb28892adc

View File

@@ -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++;
}