Support reference picture defined by bitmask in MJPEG's SOS decoder