Revision b437f5b0

View differences:

libavcodec/tiff.c
170 170
        }
171 171
        switch(s->compr){
172 172
        case TIFF_RAW:
173
            memcpy(dst, src, width);
173
            if (!s->fill_order) {
174
                memcpy(dst, src, width);
175
            } else {
176
                int i;
177
                for (i = 0; i < width; i++)
178
                    dst[i] = av_reverse[src[i]];
179
            }
174 180
            src += width;
175 181
            break;
176 182
        case TIFF_PACKBITS:

Also available in: Unified diff