Przeglądaj źródła

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 16 lat temu
rodzic
commit
de6742dd3f
3 zmienionych plików z 3 dodań i 0 usunięć
  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 Wyświetl plik

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

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

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


+ 1
- 0
pipi/codec/opencv.c Wyświetl plik

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

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

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


+ 1
- 0
pipi/codec/sdl.c Wyświetl plik

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

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

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


Ładowanie…
Anuluj
Zapisz