Fix bug DNN-5413: the JFIF decoder need both check SOF0 marker and SOF2 marker.