Revision cedb83a6 libavcodec/xsubdec.c

View differences:

libavcodec/xsubdec.c
108 108
        for (x = 0; x < w; ) {
109 109
            int log2 = ff_log2_tab[show_bits(&gb, 8)];
110 110
            int run = get_bits(&gb, 14 - 4 * (log2 >> 1));
111
            int colour = get_bits(&gb, 2);
111
            int color = get_bits(&gb, 2);
112 112
            run = FFMIN(run, w - x);
113 113
            // run length 0 means till end of row
114 114
            if (!run) run = w - x;
115
            memset(bitmap, colour, run);
115
            memset(bitmap, color, run);
116 116
            bitmap += run;
117 117
            x += run;
118 118
        }

Also available in: Unified diff