Mercurial > libavcodec.hg
comparison mjpegdec.c @ 10666:7127645ee791 libavcodec
Lossless jpeg expects and uses BGRA not RGB32 (this probably caused a problem on
big endian)
author | michael |
---|---|
date | Thu, 10 Dec 2009 18:14:26 +0000 |
parents | 981e7720fc03 |
children | 26f4a5a07f7e |
comparison
equal
deleted
inserted
replaced
10665:6cebfebeb18f | 10666:7127645ee791 |
---|---|
299 pix_fmt_id-= (pix_fmt_id & 0x0F0F0F0F)>>1; | 299 pix_fmt_id-= (pix_fmt_id & 0x0F0F0F0F)>>1; |
300 | 300 |
301 switch(pix_fmt_id){ | 301 switch(pix_fmt_id){ |
302 case 0x11111100: | 302 case 0x11111100: |
303 if(s->rgb){ | 303 if(s->rgb){ |
304 s->avctx->pix_fmt = PIX_FMT_RGB32; | 304 s->avctx->pix_fmt = PIX_FMT_BGRA; |
305 }else | 305 }else |
306 s->avctx->pix_fmt = s->cs_itu601 ? PIX_FMT_YUV444P : PIX_FMT_YUVJ444P; | 306 s->avctx->pix_fmt = s->cs_itu601 ? PIX_FMT_YUV444P : PIX_FMT_YUVJ444P; |
307 assert(s->nb_components==3); | 307 assert(s->nb_components==3); |
308 break; | 308 break; |
309 case 0x11000000: | 309 case 0x11000000: |