[FFmpeg-cvslog] avcodec/mjpegdec: Check for rgb before flipping