mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
j2kenc: fix colors on yuv444
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9e0438c903
commit
2214a67de5
@ -285,7 +285,11 @@ static int put_cod(J2kEncoderContext *s)
|
||||
// SGcod
|
||||
bytestream_put_byte(&s->buf, 0); // progression level
|
||||
bytestream_put_be16(&s->buf, 1); // num of layers
|
||||
bytestream_put_byte(&s->buf, 0); // multiple component transformation
|
||||
if(s->avctx->pix_fmt == PIX_FMT_YUV444P){
|
||||
bytestream_put_byte(&s->buf, 2); // ICT
|
||||
}else{
|
||||
bytestream_put_byte(&s->buf, 0); // unspecified
|
||||
}
|
||||
// SPcod
|
||||
bytestream_put_byte(&s->buf, codsty->nreslevels - 1); // num of decomp. levels
|
||||
bytestream_put_byte(&s->buf, codsty->log2_cblk_width-2); // cblk width
|
||||
|
Loading…
Reference in New Issue
Block a user