Skip to content

Commit

Permalink
Merge branch 'fix/jpeg_com_marker_v5.4' into 'release/v5.4'
Browse files Browse the repository at this point in the history
fix(jpeg): Fix the length of com marker (backport v5.4)

See merge request espressif/esp-idf!34822
  • Loading branch information
suda-morris committed Nov 13, 2024
2 parents 8ea7ae7 + 0aa8d7f commit ad8d752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_driver_jpeg/jpeg_emit_marker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ad8d752

Please sign in to comment.