mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
jpegdec: Fix incorrect logic in EOI tag detection
This change fixes the reversed logic in the EOI tag detection code.
This commit is contained in:
parent
7cf4ab6229
commit
7606c0eb7c
1 changed files with 1 additions and 1 deletions
|
@ -1208,7 +1208,7 @@ gst_jpeg_dec_handle_frame (GstVideoDecoder * bdec, GstVideoCodecFrame * frame)
|
|||
|
||||
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. */
|
||||
|
|
Loading…
Reference in a new issue