On Fri, Jun 28, 2013 at 12:25:12PM +0200, Nicolas Bertrand wrote:
> --- a/libavcodec/jpeg2k.c
> +++ b/libavcodec/jpeg2k.c
> @@ -443,6 +443,16 @@ int ff_jpeg2k_init_component(Jpeg2KComponent *comp,
>                      /* Compute Cy1 */
>                      cblk->coord[1][1] = FFMIN(Cy0 + (1 << 
> band->log2_cblk_height),
>                                                prec->coord[1][1]);
> +                    /* Update code-blocks coordinates according sub-band 
> position */
> +                    if ((bandno + !!reslevelno) & 1) {
> +                        cblk->coord[0][0] += 
> comp->reslevel[reslevelno-1].coord[0][1] - 
> comp->reslevel[reslevelno-1].coord[0][0];
> +                        cblk->coord[0][1] += 
> comp->reslevel[reslevelno-1].coord[0][1] - 
> comp->reslevel[reslevelno-1].coord[0][0];
> +                    }
> +                    if ((bandno + !!reslevelno) & 2) {
> +                        cblk->coord[1][0] += 
> comp->reslevel[reslevelno-1].coord[1][1] - 
> comp->reslevel[reslevelno-1].coord[1][0];
> +                        cblk->coord[1][1] += 
> comp->reslevel[reslevelno-1].coord[1][1] - 
> comp->reslevel[reslevelno-1].coord[1][0];
> +                    }

I'd break these lines, whatever ..

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to