Commit f04927f3 authored by cehoyos's avatar cehoyos

Metasoft MJPEG codec has Cb and Cr swapped, fixes issue 1611.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21451 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 788c2139
......@@ -920,6 +920,10 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s)
av_log(s->avctx, AV_LOG_ERROR, "decode_sos: index(%d) out of components\n", index);
return -1;
}
/* Metasoft MJPEG codec has Cb and Cr swapped */
if (s->avctx->codec_tag == MKTAG('M', 'T', 'S', 'J')
&& nb_components == 3 && s->nb_components == 3 && i)
index = 3 - i;
s->comp_index[i] = index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment