summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-31 21:15:27 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-31 21:16:06 +0100
commitb157dca53a868e059e3366a024fa314ae0783bb8 (patch)
tree654f0d3cc5de509257658fe855555b9204191a1c /src
parent1be7c90f6828eb08915ed71ab0e561fbbc7505dd (diff)
downloadadvtime-b157dca53a868e059e3366a024fa314ae0783bb8.tar.gz
advtime-b157dca53a868e059e3366a024fa314ae0783bb8.tar.bz2
advtime-b157dca53a868e059e3366a024fa314ae0783bb8.zip
frame_to_pgm: On error do not return 0
Diffstat (limited to 'src')
-rw-r--r--src/frame_to_pgm.c2
1 files changed, 1 insertions, 1 deletions
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]);