From 8ef758e404bbf7c8d668fd56ffc305ffcd26a0c3 Mon Sep 17 00:00:00 2001 From: Martin Molnar Date: Thu, 30 Apr 2009 16:03:50 +0200 Subject: [PATCH] Omkizing streamer without Aquosa support --- Makefile.omk | 13 +++---------- codec.c | 6 +++--- input.c | 2 +- output.c | 2 +- streamer.c | 9 +++++---- 5 files changed, 13 insertions(+), 19 deletions(-) diff --git a/Makefile.omk b/Makefile.omk index 35be7ae..fa8978a 100644 --- a/Makefile.omk +++ b/Makefile.omk @@ -1,17 +1,10 @@ -#FFSRC ?= $(FFDIR) -#CPPFLAGS= -I $(FFSRC) CFLAGS = -Wall CFLAGS += -Wdeclaration-after-statement CFLAGS += -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls CFLAGS += -Wno-pointer-sign -CFLAGS += -I /usr/include/ffmpeg -#LDFLAGS= -L $(FFDIR)/libavutil -L $(FFDIR)/libavcodec -L $(FFDIR)/libavformat -L $(FFDIR)/libavdevice -#LDLIBS = -lavdevice -lavformat -lavcodec -lavutil +CFLAGS += -I /usr/local/include -LDLIBS += -lm -lz -#CFLAGS += -g - -ifdef AQUOSA +ifdef CONFIG_AQUOSA CPPFLAGS += -I$(AQUOSA)/include LDFLAGS += -L$(AQUOSA)/lib LDLIBS += -lqreslib -lqmgrlib -lrt @@ -23,4 +16,4 @@ endif bin_PROGRAMS=streamer streamer_SOURCES=streamer.c input.c codec.c output.c -lib_LOADLIBES+= avformat avcodec avutil m z +lib_LOADLIBES+= avformat avdevice swscale avcodec avutil m z diff --git a/codec.c b/codec.c index 8496562..31338a2 100644 --- a/codec.c +++ b/codec.c @@ -7,9 +7,9 @@ #include "libavcodec/avcodec.h" #include "libswscale/swscale.h"*/ -#include -#include -#include +#include +#include +#include struct resample_data { struct SwsContext *resample_ctx; diff --git a/input.c b/input.c index 3198334..14353b9 100644 --- a/input.c +++ b/input.c @@ -4,7 +4,7 @@ * This is free software; see GPL.txt */ #include -#include +#include #include "input.h" static uint64_t time_convert(uint64_t time, AVStream *st) diff --git a/output.c b/output.c index 65e0897..260d58f 100644 --- a/output.c +++ b/output.c @@ -3,7 +3,7 @@ * * This is free software; see GPL.txt */ -#include +#include AVFormatContext *open_output_stream(const char *dst, int port, enum CodecType codec_type) diff --git a/streamer.c b/streamer.c index 84a320f..b110212 100644 --- a/streamer.c +++ b/streamer.c @@ -6,8 +6,9 @@ #include #include -#include -//#include +#include +#include +#include #include "input.h" #include "output.h" @@ -105,7 +106,7 @@ int main(int argc, char *argv[]) AVPacket *opkt; pkt->pts += s->streams[pkt->stream_index]->start_time; - rt_job_start(pkt->pts); + //rt_job_start(pkt->pts); f = pkt_decode(s, pkt); if (f) { opkt = pkt_encode(os, f); @@ -113,7 +114,7 @@ int main(int argc, char *argv[]) pkt_send(os, opkt); } } - rt_job_end(); + //rt_job_end(); av_free_packet(pkt); } } -- 2.39.2