Commit 992cdbc5 authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Carl Eugen Hoyos

avcodec/mjpegdec: Improve intel jpeg flip heuristic

Fixes Ticket3698
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0545ef71)
parent e8bb67c2
...@@ -1656,7 +1656,7 @@ static int mjpeg_decode_com(MJpegDecodeContext *s) ...@@ -1656,7 +1656,7 @@ static int mjpeg_decode_com(MJpegDecodeContext *s)
s->interlace_polarity = 1; s->interlace_polarity = 1;
} else if (!strcmp(cbuf, "CS=ITU601")) } else if (!strcmp(cbuf, "CS=ITU601"))
s->cs_itu601 = 1; s->cs_itu601 = 1;
else if ((!strncmp(cbuf, "Intel(R) JPEG Library, version 1", 32)) || else if ((!strncmp(cbuf, "Intel(R) JPEG Library, version 1", 32) && s->avctx->codec_tag) ||
(!strncmp(cbuf, "Metasoft MJPEG Codec", 20))) (!strncmp(cbuf, "Metasoft MJPEG Codec", 20)))
s->flipped = 1; s->flipped = 1;
......
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