summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--output_example.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/output_example.c b/output_example.c
index 42153f1103..beef610904 100644
--- a/output_example.c
+++ b/output_example.c
@@ -26,6 +26,10 @@
#include <stdio.h>
#include <math.h>
+#ifndef M_PI
+#define M_PI 3.1415926535897931
+#endif
+
#include "avformat.h"
/* 5 seconds stream duration */