summaryrefslogtreecommitdiff
path: root/libavformat/grab.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/grab.c')
-rw-r--r--libavformat/grab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/grab.c b/libavformat/grab.c
index 15d8dbbbc8..8b81183323 100644
--- a/libavformat/grab.c
+++ b/libavformat/grab.c
@@ -68,7 +68,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
const char *video_device;
int j;
- if (!ap || ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0)
+ if (ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0)
return -1;
width = ap->width;