[FFmpeg-cvslog] avcodec/j2kenc: YUV should not use the ICT

Clément Bœsch u at pkh.me
Fri Jun 19 08:43:49 CEST 2015


On Fri, Jun 19, 2015 at 05:33:32AM +0200, Michael Niedermayer wrote:
> ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jun 19 04:51:59 2015 +0200| [bb3703a4c30659d7ae7b41a94455ce810bbc102b] | committer: Michael Niedermayer
> 
> avcodec/j2kenc: YUV should not use the ICT
> 
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> 
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb3703a4c30659d7ae7b41a94455ce810bbc102b
> ---
> 
>  libavcodec/j2kenc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
> index 68905cc..6a5fd36 100644
> --- a/libavcodec/j2kenc.c
> +++ b/libavcodec/j2kenc.c
> @@ -271,7 +271,7 @@ static int put_cod(Jpeg2000EncoderContext *s)
>      bytestream_put_byte(&s->buf, 0); // progression level
>      bytestream_put_be16(&s->buf, 1); // num of layers
>      if(s->avctx->pix_fmt == AV_PIX_FMT_YUV444P){
> -        bytestream_put_byte(&s->buf, 2); // ICT
> +        bytestream_put_byte(&s->buf, 0); // unspecified
>      }else{
>          bytestream_put_byte(&s->buf, 0); // unspecified
>      }

Any reason to keep the if?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20150619/857f0686/attachment.asc>


More information about the ffmpeg-cvslog mailing list