mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
fix(jpeg): Fix the length of com marker
This commit is contained in:
parent
c50587e412
commit
f54ec30f6a
@ -235,7 +235,7 @@ esp_err_t emit_com_marker(jpeg_enc_header_info_t *header_info)
|
||||
compensate_size += cache_align;
|
||||
}
|
||||
emit_marker(header_info, JPEG_M_COM & 0xff);
|
||||
emit_word(header_info, compensate_size);
|
||||
emit_word(header_info, compensate_size + 2);
|
||||
for (int i = 0; i < compensate_size; i++) {
|
||||
emit_byte(header_info, 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user