summaryrefslogtreecommitdiff
path: root/src/frame_to_pgm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame_to_pgm.c')
-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 5295c56..36e9ac8 100644
--- a/src/frame_to_pgm.c
+++ b/src/frame_to_pgm.c
@@ -36,7 +36,7 @@ main(int argc, char **argv)
return -ret;
ret = video_decode_get_frame(vd, &frame);
- if (ret < 0)
+ if (ret < 1)
return -ret;
pgm_save(frame->data, frame->stride, frame->width, frame->height,