Revision f66e4f5f libavcodec/truemotion2.c

View differences:

libavcodec/truemotion2.c
384 384
            d = deltas[i + j * 4];
385 385
            ct += d;
386 386
            last[i] += ct;
387
            Y[i] = clip_uint8(last[i]);
387
            Y[i] = av_clip_uint8(last[i]);
388 388
        }
389 389
        Y += stride;
390 390
        ctx->D[j] = ct;
......
735 735
    src = (ctx->cur?ctx->Y2:ctx->Y1);
736 736
    for(j = 0; j < ctx->avctx->height; j++){
737 737
        for(i = 0; i < ctx->avctx->width; i++){
738
            Y[i] = clip_uint8(*src++);
738
            Y[i] = av_clip_uint8(*src++);
739 739
        }
740 740
        Y += p->linesize[0];
741 741
    }
......
743 743
    src = (ctx->cur?ctx->U2:ctx->U1);
744 744
    for(j = 0; j < (ctx->avctx->height + 1) >> 1; j++){
745 745
        for(i = 0; i < (ctx->avctx->width + 1) >> 1; i++){
746
            U[i] = clip_uint8(*src++);
746
            U[i] = av_clip_uint8(*src++);
747 747
        }
748 748
        U += p->linesize[2];
749 749
    }
......
751 751
    src = (ctx->cur?ctx->V2:ctx->V1);
752 752
    for(j = 0; j < (ctx->avctx->height + 1) >> 1; j++){
753 753
        for(i = 0; i < (ctx->avctx->width + 1) >> 1; i++){
754
            V[i] = clip_uint8(*src++);
754
            V[i] = av_clip_uint8(*src++);
755 755
        }
756 756
        V += p->linesize[1];
757 757
    }

Also available in: Unified diff