Revision 3143c787

View differences:

libavcodec/xsubdec.c
74 74
    // read palette
75 75
    for (i = 0; i < sub->rects[0].nb_colors; i++)
76 76
        sub->rects[0].rgba_palette[i] = bytestream_get_be24(&buf);
77
    // make all except background (first entry) non-transparent
78
    for (i = 1; i < sub->rects[0].nb_colors; i++)
79
        sub->rects[0].rgba_palette[i] |= 0xff000000;
77 80

  
78 81
    // process RLE-compressed data
79 82
    rlelen = FFMIN(rlelen, buf_end - buf);

Also available in: Unified diff