aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-03 23:39:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-03 23:39:50 +0200
commit1fa4018e29d7701d06a27596b9b15a185193707b (patch)
tree7456f1decf7f873e0ad59350dee0ab19a6c952b8 /libavcodec
parent507d2d28d6112b648c2c4cdbdac81de7c3041f83 (diff)
downloadffmpeg-1fa4018e29d7701d06a27596b9b15a185193707b.tar.gz
jpegdec: try to fix different flipping behavior of inteljpegs.
This may need some trial and error to find exactly how to identify them so please report any intel jpegs that get fliped wrong. Fixes Ticket511 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mjpegdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index c6297c3b43..9f81302a3c 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1468,7 +1468,7 @@ static int mjpeg_decode_com(MJpegDecodeContext *s)
// printf("mjpeg: workarounding buggy AVID\n");
} else if (!strcmp(cbuf, "CS=ITU601"))
s->cs_itu601 = 1;
- else if ((len > 20 && !strncmp(cbuf, "Intel(R) JPEG Library", 21)) ||
+ else if ((len > 31 && !strncmp(cbuf, "Intel(R) JPEG Library, version 1", 32)) ||
(len > 19 && !strncmp(cbuf, "Metasoft MJPEG Codec", 20)))
s->flipped = 1;