1
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 22:37:28 +01:00

Make return type consistent with usage. Patch by Pierre Lombard.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18485 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rathann 2006-05-13 18:20:41 +00:00
parent 8ef6dadf95
commit 7beaed2627

View File

@ -54,7 +54,7 @@ static int config(struct vf_instance_s* vf,
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 @@ static int write_png(char *fname, unsigned char *buffer, int width, int height,
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);