Mercurial > libavcodec.hg
changeset 10672:2aab93afc826 libavcodec
(Partly) support Metasoft MJPEG Codec, fixes half of issue 1611.
author | cehoyos |
---|---|
date | Thu, 10 Dec 2009 23:06:23 +0000 |
parents | 3ef57f4fa579 |
children | 158f0ea08e82 |
files | mjpegdec.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mjpegdec.c Thu Dec 10 22:29:21 2009 +0000 +++ b/mjpegdec.c Thu Dec 10 23:06:23 2009 +0000 @@ -1182,7 +1182,8 @@ else if(!strcmp(cbuf, "CS=ITU601")){ s->cs_itu601= 1; } - else if(len > 20 && !strncmp(cbuf, "Intel(R) JPEG Library", 21)){ + else if((len > 20 && !strncmp(cbuf, "Intel(R) JPEG Library", 21)) || + (len > 19 && !strncmp(cbuf, "Metasoft MJPEG Codec", 20))){ s->flipped = 1; }