summaryrefslogtreecommitdiff
path: root/libavformat/audio.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/audio.c
parente7c8206e5c4ee83eccb487583331fb39ba73a136 (diff)
simplify AVFormatParameters NULL checks
Originally committed as revision 5146 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/audio.c')
-rw-r--r--libavformat/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/audio.c b/libavformat/audio.c
index a9e9c7f167..9a45952129 100644
--- a/libavformat/audio.c
+++ b/libavformat/audio.c
@@ -217,7 +217,7 @@ static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap)
AVStream *st;
int ret;
- if (!ap || ap->sample_rate <= 0 || ap->channels <= 0)
+ if (ap->sample_rate <= 0 || ap->channels <= 0)
return -1;
st = av_new_stream(s1, 0);