Revision 6db140dd

View differences:

libavcodec/pnm.c
218 218
            return -1;
219 219
        for(i = 0; i < avctx->height; i++) {
220 220
            if (!upgrade)
221
            memcpy(ptr, s->bytestream, n);
221
                memcpy(ptr, s->bytestream, n);
222 222
            else if (upgrade == 1) {
223 223
                unsigned int j, f = (255*128 + s->maxval/2) / s->maxval;
224 224
                for (j=0; j<n; j++)

Also available in: Unified diff