Skip to content

Commit

Permalink
mjpeg_encoder: fix bool vs. boolean mismatch
Browse files Browse the repository at this point in the history
Fixes:

  .../libcamera-apps-b1ca8997530f1f0290b291a956de359f2d4ce3e2/mjpeg_encoder.cpp:57:22: error: cannot convert ‘bool’ to ‘boolean’ in assignment
     57 |  cinfo.raw_data_in = true;
        |                      ^~~~
  compilation terminated due to -Wfatal-errors.

Signed-off-by: Peter Seiderer <[email protected]>
  • Loading branch information
pseiderer committed Feb 11, 2021
1 parent 3611988 commit f70d2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mjpeg_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void MjpegEncoder::encodeJPEG(struct jpeg_compress_struct &cinfo, EncodeItem &it
cinfo.restart_interval = 0;

jpeg_set_defaults(&cinfo);
cinfo.raw_data_in = true;
cinfo.raw_data_in = TRUE;
jpeg_set_quality(&cinfo, options_.quality, TRUE);
encoded_buffer = nullptr;
buffer_len = 0;
Expand Down

0 comments on commit f70d2d3

Please sign in to comment.