jifmux fails to find EOI if it's not within the last 5 bytes
Submitted by Mohammed Sameer
The attached image makes jifmux barf with the following pipeline:
GST_DEBUG='*:2' gst-launch-1.0 filesrc num-buffers=1 blocksize=4299656 location=1462395350.jpg ! 'image/jpeg' ! jifmux ! filesink location=foo.jpg
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.027655752 10721 0x872c290 WARN jifmux gstjifmux.c:341:gst_jif_mux_parse_image:
<jifmux0> Couldn't find an EOI marker
0:00:00.027717421 10721 0x872c290 WARN jifmux gstjifmux.c:371:gst_jif_mux_parse_image:
<jifmux0> Error parsing image header (need more that 0 bytes available)
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
It seems EOI marker is not present within the last 5 bytes thus jifmux fails to find it.