mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
fix(jpeg): Fix the length of com marker
This commit is contained in:
parent
4143156926
commit
286bf6b096
@ -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