Revision cea96420 libavcodec/mpegvideo.c

View differences:

libavcodec/mpegvideo.c
1097 1097
        for(y= 0; y <= ey; y++){
1098 1098
            x = (y*f)>>16;
1099 1099
            fr= (y*f)&0xFFFF;
1100
            buf[y*stride + x  ]+= (color*(0x10000-fr))>>16;;
1101
            buf[y*stride + x+1]+= (color*         fr )>>16;;
1100
            buf[y*stride + x  ]+= (color*(0x10000-fr))>>16;
1101
            buf[y*stride + x+1]+= (color*         fr )>>16;
1102 1102
        }
1103 1103
    }
1104 1104
}
......
2129 2129
            offset[2]=
2130 2130
            offset[3]= 0;
2131 2131
        }else{
2132
            offset[0]= y * s->linesize;;
2132
            offset[0]= y * s->linesize;
2133 2133
            offset[1]=
2134 2134
            offset[2]= (y >> s->chroma_y_shift) * s->uvlinesize;
2135 2135
            offset[3]= 0;

Also available in: Unified diff