From e98457cea9e3c1b7603ef928c293bacdefb3124d Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 13 Nov 2012 08:54:28 +0100 Subject: Add decode_frame example: How to decode one video frame at timestamp ..and convet to RGB if desired. --- src/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Makefile') 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 $@ -- cgit