Skip to content

Commit

Permalink
initialize jpeg decoder first
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-m committed Feb 16, 2025
1 parent f977d32 commit 0805d98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ void app_main(void) {
QueueHandle_t rtp_out = xQueueCreate(1, CONFIG_RTP_JPEG_MAX_DATA_SIZE_BYTES);
assert(rtp_out != NULL);

print_free_heap_stack();
ESP_LOGI(TAG, "Initializing JPEG decoder");
jpeg_decoder_t jpeg_dec = {0};
ESP_ERROR_CHECK(init_jpeg_decoder(sizeof(decode_in_buf), &lcd, &jpeg_dec));

print_free_heap_stack();
ESP_LOGI(TAG, "Starting UDP server");
ESP_LOGI(TAG, "Starting task, stack_sz=%u", rtp_udp_recv_task_approx_stack_sz());
Expand All @@ -86,11 +91,6 @@ void app_main(void) {
abort();
}

print_free_heap_stack();
ESP_LOGI(TAG, "Initializing JPEG decoder");
jpeg_decoder_t jpeg_dec = {0};
ESP_ERROR_CHECK(init_jpeg_decoder(sizeof(decode_in_buf), &lcd, &jpeg_dec));

// Main loop.
print_free_heap_stack();
int64_t last_frame_recv_us = 0;
Expand Down

0 comments on commit 0805d98

Please sign in to comment.