diff --git a/doc/examples/Makefile b/doc/examples/Makefile index 9bb68ae894..992d10ecc9 100644 --- a/doc/examples/Makefile +++ b/doc/examples/Makefile @@ -6,8 +6,9 @@ FFMPEG_LIBS= libavdevice \ libswscale \ libavutil \ -CFLAGS+=-Wall $(shell pkg-config --cflags $(FFMPEG_LIBS)) -LDLIBS+=$(shell pkg-config --libs $(FFMPEG_LIBS)) +CFLAGS += -Wall -O2 +CFLAGS += $(shell pkg-config --cflags $(FFMPEG_LIBS)) +LDLIBS += $(shell pkg-config --libs $(FFMPEG_LIBS)) EXAMPLES= decoding_encoding \ filtering_video \