X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fmjpegdec.c;h=039fe0edfb44b5bc324a42ab40f9e88876f37c50;hb=76b81b10d90732a6609522b7b152395ae2c049bb;hp=ad618e25c9d8ff7e41a127fa639a518038b911d3;hpb=7a0e085ec5fe19eaa38f1a39bb0b8842fe548c89;p=ffmpeg diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index ad618e25c9d..039fe0edfb4 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -289,7 +289,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) width = get_bits(&s->gb, 16); if (s->avctx->codec_id == AV_CODEC_ID_AMV && (height&15)) - avpriv_request_sample(s->avctx, "non mod 16 height AMV\n"); + avpriv_request_sample(s->avctx, "non mod 16 height AMV"); // HACK for odd_height.mov if (s->interlaced && s->width == width && s->height == height + 1) @@ -345,6 +345,12 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s) i, h_count[i], v_count[i], s->component_id[i], s->quant_index[i]); } + if ( nb_components == 4 + && s->component_id[0] == 'C' - 1 + && s->component_id[1] == 'M' - 1 + && s->component_id[2] == 'Y' - 1 + && s->component_id[3] == 'K' - 1) + s->adobe_transform = 0; if (s->ls && (s->h_max > 1 || s->v_max > 1)) { avpriv_report_missing_feature(s->avctx, "Subsampling in JPEG-LS");