Explorar el Código

Fix uninitialised values in most codec image writers.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2841 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam hace 16 años
padre
commit
de6742dd3f
Se han modificado 3 ficheros con 3 adiciones y 0 borrados
  1. +1
    -0
      pipi/codec/imlib.c
  2. +1
    -0
      pipi/codec/opencv.c
  3. +1
    -0
      pipi/codec/sdl.c

+ 1
- 0
pipi/codec/imlib.c Ver fichero

@@ -86,6 +86,7 @@ int pipi_save_imlib2(pipi_image_t *img, const char *name)


img->codec_priv = (void *)priv; img->codec_priv = (void *)priv;
img->codec_format = PIPI_PIXELS_RGBA_C; img->codec_format = PIPI_PIXELS_RGBA_C;
img->codec_free = pipi_free_imlib2;


img->wrap = 0; img->wrap = 0;
img->u8 = 1; img->u8 = 1;


+ 1
- 0
pipi/codec/opencv.c Ver fichero

@@ -86,6 +86,7 @@ int pipi_save_opencv(pipi_image_t *img, const char *name)


img->codec_priv = (void *)priv; img->codec_priv = (void *)priv;
img->codec_format = PIPI_PIXELS_BGR_C; img->codec_format = PIPI_PIXELS_BGR_C;
img->codec_free = pipi_free_opencv;


img->wrap = 0; img->wrap = 0;
img->u8 = 1; img->u8 = 1;


+ 1
- 0
pipi/codec/sdl.c Ver fichero

@@ -90,6 +90,7 @@ int pipi_save_sdl(pipi_image_t *img, const char *name)


img->codec_priv = (void *)priv; img->codec_priv = (void *)priv;
img->codec_format = PIPI_PIXELS_RGBA_C; img->codec_format = PIPI_PIXELS_RGBA_C;
img->codec_free = pipi_free_sdl;


img->wrap = 0; img->wrap = 0;
img->u8 = 1; img->u8 = 1;


Cargando…
Cancelar
Guardar