avfilter: add missing FF_API_AVFILTERPAD_PUBLIC guard
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 8 Aug 2015 08:41:30 +0000 (10:41 +0200)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Tue, 11 Aug 2015 22:14:13 +0000 (00:14 +0200)
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavfilter/avfilter.c

index d43d813..700baa2 100644 (file)
@@ -508,8 +508,10 @@ int avfilter_register(AVFilter *filter)
 
     for(i=0; filter->inputs && filter->inputs[i].name; i++) {
         const AVFilterPad *input = &filter->inputs[i];
+#if FF_API_AVFILTERPAD_PUBLIC
         av_assert0(     !input->filter_frame
                     || (!input->start_frame && !input->end_frame));
+#endif
     }
 
     filter->next = NULL;