diff options
-rw-r--r-- | src/frame_to_pgm.c | 2 |
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]); |