According to spec, the JPEG_MARKER_DRI(Restart interval definition) marker can come before the SOS marker. So we should not check the SOS state when parsing the DRI marker.
Parse AVI1 in APP0 and not post warning messages into the bus if a com or appx is not well parsed since they don't affect the image.
Fixes: #1787 (closed)