Revision b0c8b8a6 libavcodec/lagarith.c

View differences:

libavcodec/lagarith.c
405 405
            }
406 406
        }
407 407
    } else if (esc_count == 0xff) {
408
        /* Plane is a solid run of 0 bytes */
408
        /* Plane is a solid run of given value */
409 409
        for (i = 0; i < height; i++)
410
            memset(dst + i * stride, 0, width);
410
            memset(dst + i * stride, src[1], width);
411
        /* Do not apply prediction.
412
           Note: memset to 0 above, setting first value to src[1]
413
           and applying prediction gives the same result. */
414
        return 0;
411 415
    } else {
412 416
        av_log(l->avctx, AV_LOG_ERROR,
413 417
               "Invalid zero run escape code! (%#x)\n", esc_count);

Also available in: Unified diff