Revision dbfdb288 libavcodec/targa.c

View differences:

libavcodec/targa.c
189 189
            int r, g, b, t;
190 190
            int32_t *pal = ((int32_t*)p->data[1]) + first_clr;
191 191
            for(t = 0; t < colors; t++){
192
                r = *buf++;
193
                g = *buf++;
194 192
                b = *buf++;
195
                *pal++ = (b << 16) | (g << 8) | r;
193
                g = *buf++;
194
                r = *buf++;
195
                *pal++ = (0xff<<24) | (r << 16) | (g << 8) | b;
196 196
            }
197 197
            p->palette_has_changed = 1;
198 198
        }

Also available in: Unified diff