This change fixes the reversed logic in the EOI tag detection
code.
data = dec->current_frame_map.data;
nbytes = dec->current_frame_map.size;
data = dec->current_frame_map.data;
nbytes = dec->current_frame_map.size;
- has_eoi = ((data[nbytes - 2] != 0xff) || (data[nbytes - 1] != 0xd9));
+ has_eoi = ((data[nbytes - 2] == 0xff) && (data[nbytes - 1] == 0xd9));
/* some cameras fail to send an end-of-image marker (EOI),
* add it if that is the case. */
/* some cameras fail to send an end-of-image marker (EOI),
* add it if that is the case. */