Mercurial > mplayer.hg
diff libmpcodecs/vf_screenshot.c @ 18484:28fd6f89e1b8
Make return type consistent with usage. Patch by Pierre Lombard.
author | rathann |
---|---|
date | Sat, 13 May 2006 18:20:41 +0000 |
parents | 20aca9baf5d8 |
children | 497ebe3ecc2b |
line wrap: on
line diff
--- a/libmpcodecs/vf_screenshot.c Sat May 13 18:01:04 2006 +0000 +++ b/libmpcodecs/vf_screenshot.c Sat May 13 18:20:41 2006 +0000 @@ -54,7 +54,7 @@ return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt); } -static int write_png(char *fname, unsigned char *buffer, int width, int height, int stride) +static void write_png(char *fname, unsigned char *buffer, int width, int height, int stride) { FILE * fp; png_structp png_ptr; @@ -69,13 +69,13 @@ if (setjmp(png_ptr->jmpbuf)) { png_destroy_write_struct(&png_ptr, &info_ptr); fclose(fp); - return 0; + return; } fp = fopen (fname, "wb"); if (fp == NULL) { mp_msg(MSGT_VFILTER,MSGL_ERR,"\nPNG Error opening %s for writing!\n", fname); - return 0; + return; } png_init_io(png_ptr, fp);