瀏覽代碼

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 年之前
父節點
當前提交
de6742dd3f
共有 3 個檔案被更改,包括 3 行新增0 行删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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;


Loading…
取消
儲存