Revision 8448946e

View differences:

libavcodec/roqvideo.c
118 118
    for(cp = 0; cp < 3; cp++) {
119 119
        int outstride = ri->current_frame->linesize[cp];
120 120
        int instride  = ri->last_frame   ->linesize[cp];
121
        block_copy(ri->current_frame->data[cp] + (y*outstride) + x,
122
                   ri->last_frame->data[cp] + (my*instride) + mx,
121
        block_copy(ri->current_frame->data[cp] + y*outstride + x,
122
                   ri->last_frame->data[cp] + my*instride + mx,
123 123
                   outstride, instride, sz);
124 124
    }
125 125
}
libavcodec/roqvideoenc.c
608 608
/* NOTE: Typecodes must be spooled AFTER arguments!! */
609 609
static void write_typecode(CodingSpool *s, uint8_t type)
610 610
{
611
    s->typeSpool |= ((type) & 3) << (14 - s->typeSpoolLength);
611
    s->typeSpool |= (type & 3) << (14 - s->typeSpoolLength);
612 612
    s->typeSpoolLength += 2;
613 613
    if (s->typeSpoolLength == 16) {
614 614
        bytestream_put_le16(s->pout, s->typeSpool);

Also available in: Unified diff