[FFmpeg-devel] [PATCH 2/7] doc/examples: link decoded_encoding and muxing with math lib.

Clément Bœsch ubitux at gmail.com
Thu May 10 00:01:29 CEST 2012


These two examples use the sin() function.
---
 doc/examples/Makefile |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/examples/Makefile b/doc/examples/Makefile
index 99c04ff..9bb68ae 100644
--- a/doc/examples/Makefile
+++ b/doc/examples/Makefile
@@ -17,6 +17,10 @@ EXAMPLES=       decoding_encoding                  \
 
 OBJS=$(addsuffix .o,$(EXAMPLES))
 
+# the following examples make explicit use of the math library
+decoding_encoding: LDLIBS += -lm
+muxing:            LDLIBS += -lm
+
 %: %.o
 	$(CC) $< $(LDLIBS) -o $@
 
-- 
1.7.10.1



More information about the ffmpeg-devel mailing list