mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
jpegdec: fix CJPG decoding.
Fixes ticket133 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0aed4f81fe
commit
a09a3e8213
@ -993,8 +993,11 @@ int ff_mjpeg_decode_sos(MJpegDecodeContext *s,
|
|||||||
|
|
||||||
predictor= get_bits(&s->gb, 8); /* JPEG Ss / lossless JPEG predictor /JPEG-LS NEAR */
|
predictor= get_bits(&s->gb, 8); /* JPEG Ss / lossless JPEG predictor /JPEG-LS NEAR */
|
||||||
ilv= get_bits(&s->gb, 8); /* JPEG Se / JPEG-LS ILV */
|
ilv= get_bits(&s->gb, 8); /* JPEG Se / JPEG-LS ILV */
|
||||||
prev_shift = get_bits(&s->gb, 4); /* Ah */
|
if(s->avctx->codec_tag != AV_RL32("CJPG")){
|
||||||
point_transform= get_bits(&s->gb, 4); /* Al */
|
prev_shift = get_bits(&s->gb, 4); /* Ah */
|
||||||
|
point_transform= get_bits(&s->gb, 4); /* Al */
|
||||||
|
}else
|
||||||
|
prev_shift= point_transform= 0;
|
||||||
|
|
||||||
for(i=0;i<nb_components;i++)
|
for(i=0;i<nb_components;i++)
|
||||||
s->last_dc[i] = 1024;
|
s->last_dc[i] = 1024;
|
||||||
|
Loading…
Reference in New Issue
Block a user