diff audio.c @ 1003:2d57ce58f576 libavformat

simplify AVFormatParameters NULL checks
author michael
date Sat, 11 Mar 2006 00:22:21 +0000
parents 547675092e98
children d89d7ef290da
line wrap: on
line diff
--- a/audio.c	Wed Mar 08 21:51:39 2006 +0000
+++ b/audio.c	Sat Mar 11 00:22:21 2006 +0000
@@ -217,7 +217,7 @@
     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);