Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-03-11 03:22:21 +0300
committerMichael Niedermayer <michaelni@gmx.at>2006-03-11 03:22:21 +0300
commitc04c3282b4334ff64cfd69d40fea010602e830fd (patch)
treeb07e0f447e3146669703bf86229925a44ebd628e /libavformat/v4l2.c
parente7c8206e5c4ee83eccb487583331fb39ba73a136 (diff)
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.c2
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;