Revision e3c90129

View differences:

libavcodec/xsubdec.c
84 84
    bitmap = sub->rects[0].bitmap;
85 85
    for (y = 0; y < h; y++) {
86 86
        // interlaced: do odd lines
87
        if (y == h / 2) bitmap = sub->rects[0].bitmap + w;
87
        if (y == (h + 1) / 2) bitmap = sub->rects[0].bitmap + w;
88 88
        for (x = 0; x < w; ) {
89 89
            int log2 = ff_log2_tab[show_bits(&gb, 8)];
90 90
            int run = get_bits(&gb, 14 - 4 * (log2 >> 1));

Also available in: Unified diff