You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-06 08:29:25 +02:00
long awaited simple libavformat output API example
Originally committed as revision 2069 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
6
Makefile
6
Makefile
@@ -25,6 +25,7 @@ endif
|
||||
endif
|
||||
|
||||
PROG=ffmpeg$(EXE)
|
||||
PROGTEST=output_example$(EXE)
|
||||
|
||||
ifeq ($(CONFIG_FFSERVER),yes)
|
||||
PROG+=ffserver$(EXE)
|
||||
@@ -75,7 +76,7 @@ OBJS = ffmpeg.o ffserver.o cmdutils.o ffplay.o
|
||||
SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)
|
||||
FFLIBS = -L./libavformat -lavformat -L./libavcodec -lavcodec
|
||||
|
||||
all: lib $(PROG) $(VHOOK)
|
||||
all: lib $(PROG) $(PROGTEST) $(VHOOK)
|
||||
|
||||
lib: $(AMRLIBS)
|
||||
$(MAKE) -C libavcodec all
|
||||
@@ -98,6 +99,9 @@ ffplay$(EXE): ffplay_g$(EXE)
|
||||
cp -p $< $@
|
||||
$(STRIP) $@
|
||||
|
||||
output_example$(EXE): output_example.o .libs
|
||||
$(CC) $(LDFLAGS) -o $@ output_example.o $(FFLIBS) $(EXTRALIBS)
|
||||
|
||||
ffplay.o: ffplay.c
|
||||
$(CC) $(CFLAGS) $(SDL_CFLAGS) -c -o $@ $<
|
||||
|
||||
|
||||
Reference in New Issue
Block a user