diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-11 00:22:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-11 00:22:21 +0000 |
commit | c04c3282b4334ff64cfd69d40fea010602e830fd (patch) | |
tree | b07e0f447e3146669703bf86229925a44ebd628e /libavformat/v4l2.c | |
parent | e7c8206e5c4ee83eccb487583331fb39ba73a136 (diff) | |
download | ffmpeg-c04c3282b4334ff64cfd69d40fea010602e830fd.tar.gz |
simplify AVFormatParameters NULL checks
Originally committed as revision 5146 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/v4l2.c')
-rw-r--r-- | libavformat/v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/v4l2.c b/libavformat/v4l2.c index a445c6da11..7aa98df122 100644 --- a/libavformat/v4l2.c +++ b/libavformat/v4l2.c @@ -384,7 +384,7 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap) uint32_t desired_format, capabilities; 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) { av_log(s1, AV_LOG_ERROR, "Missing/Wrong parameters\n"); return -1; |