summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-13 08:54:28 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-13 08:54:28 +0100
commite98457cea9e3c1b7603ef928c293bacdefb3124d (patch)
treee795502da43217a0e01868002da828ad2fc26d3a /src/Makefile
parent1f3c75ef144365b6032fad59ec12451e1673cb11 (diff)
downloadadvtime-e98457cea9e3c1b7603ef928c293bacdefb3124d.tar.gz
advtime-e98457cea9e3c1b7603ef928c293bacdefb3124d.tar.bz2
advtime-e98457cea9e3c1b7603ef928c293bacdefb3124d.zip
Add decode_frame example: How to decode one video frame at timestamp
..and convet to RGB if desired.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index f61114a..29ffd29 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,5 +1,11 @@
CFLAGS=-std=c99 -Wall
LibAV=`pkg-config --cflags --libs libavcodec`
+LIBAV_DECODE_FLAGS=$(shell pkg-config --libs --cflags libavformat libavcodec libavutil libswscale)
+
+all: advtime decode_frame
advtime: advtime.c
gcc ${LibAV} advtime.c -o $@
+
+decode_frame: decode_frame.c
+ gcc $(CFLAGS) $(LIBAV_DECODE_FLAGS) decode_frame.c -o $@