summaryrefslogtreecommitdiff
path: root/libavformat/grab_bktr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-03-11 00:22:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-03-11 00:22:21 +0000
commitc04c3282b4334ff64cfd69d40fea010602e830fd (patch)
treeb07e0f447e3146669703bf86229925a44ebd628e /libavformat/grab_bktr.c
parente7c8206e5c4ee83eccb487583331fb39ba73a136 (diff)
simplify AVFormatParameters NULL checks
Originally committed as revision 5146 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/grab_bktr.c')
-rw-r--r--libavformat/grab_bktr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/grab_bktr.c b/libavformat/grab_bktr.c
index 3c63256674..119a41153d 100644
--- a/libavformat/grab_bktr.c
+++ b/libavformat/grab_bktr.c
@@ -245,7 +245,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
int format = -1;
const char *video_device;
- 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;