]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/avfilter.c
http: add 'timeout' AVOption
[ffmpeg] / libavfilter / avfilter.c
index 3bac29d5ac9db045d84f213d4c90885884542ec2..670a3a3dd07fce81301e5229a5585e449fb17c6f 100644 (file)
@@ -142,7 +142,7 @@ int avfilter_link(AVFilterContext *src, unsigned srcpad,
     link->srcpad  = &src->output_pads[srcpad];
     link->dstpad  = &dst->input_pads[dstpad];
     link->type    = src->output_pads[srcpad].type;
-    av_assert0(PIX_FMT_NONE == -1 && AV_SAMPLE_FMT_NONE == -1);
+    av_assert0(AV_PIX_FMT_NONE == -1 && AV_SAMPLE_FMT_NONE == -1);
     link->format  = -1;
 
     return 0;
@@ -436,6 +436,9 @@ static int pad_count(const AVFilterPad *pads)
 {
     int count;
 
+    if (!pads)
+        return 0;
+
     for(count = 0; pads->name; count ++) pads ++;
     return count;
 }