From b157dca53a868e059e3366a024fa314ae0783bb8 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 31 Jan 2013 21:15:27 +0100 Subject: frame_to_pgm: On error do not return 0 --- src/frame_to_pgm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/frame_to_pgm.c b/src/frame_to_pgm.c index b878968..86dfa3c 100644 --- a/src/frame_to_pgm.c +++ b/src/frame_to_pgm.c @@ -37,7 +37,7 @@ main(int argc, char **argv) ret = video_decode_get_frame(vd, &frame); if (ret < 1) - return -ret; + return -ret + 1; pgm_save(frame->data, frame->stride, frame->width, frame->height, argv[2]); -- cgit