• Martin Storsjö's avatar
    film_grain: Fix compilation with MSVC · 86fd0b6d
    Martin Storsjö authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    This fixes compiler errors like these:
    src/film_grain_tmpl.c(238): error C2036: 'void *': unknown size
    
    Don't rely on sizeof(void) == 1 in pointer arithmetic, but instead
    cast the row pointers to the pixel datatype immediately, use PXSTRIDE()
    for converting a stride in byte units to pixel units, and skip
    sizeof(pixel) for horizontal offsets that previously were applied on
    a void pointer.
    86fd0b6d