Add missing CONFIG_AVFILTER check.
authorTakashi Mochizuki <mochi@da2.so-net.ne.jp>
Sun, 1 May 2011 03:03:20 +0000 (12:03 +0900)
committerAnton Khirnov <anton@khirnov.net>
Tue, 10 May 2011 05:12:27 +0000 (07:12 +0200)
Fix configure --disable-avfilter issue.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
ffmpeg.c

index bb64f7c..cadb654 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2803,9 +2803,11 @@ static void opt_frame_aspect_ratio(const char *arg)
     }
     frame_aspect_ratio = ar;
 
+#if CONFIG_AVFILTER
     x = vfilters ? strlen(vfilters) : 0;
     vfilters = av_realloc(vfilters, x+100);
     snprintf(vfilters+x, x+100, "%csetdar=%f\n", x?',':' ', ar);
+#endif
 }
 
 static int opt_metadata(const char *opt, const char *arg)