summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-13 18:20:41 +0000
committerrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-13 18:20:41 +0000
commit7beaed26270d7aa162ded0324e30b984be2f01f0 (patch)
treee9eee9b890cd220a716e73422c15466731d53208 /libmpcodecs
parent8ef6dadf95cccfc070a25b52f378488ce63e4c43 (diff)
downloadmpv-7beaed26270d7aa162ded0324e30b984be2f01f0.tar.bz2
mpv-7beaed26270d7aa162ded0324e30b984be2f01f0.tar.xz
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_screenshot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vf_screenshot.c b/libmpcodecs/vf_screenshot.c
index a5fa120b9e..f07c96d2d5 100644
--- a/libmpcodecs/vf_screenshot.c
+++ b/libmpcodecs/vf_screenshot.c
@@ -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);