-#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
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
#include "libavcodec/avcodec.h"
#include "libswscale/swscale.h"*/
-#include <avformat.h>
-#include <avcodec.h>
-#include <swscale.h>
+#include <libavformat/avformat.h>
+#include <libavcodec/avcodec.h>
+#include <libswscale/swscale.h>
struct resample_data {
struct SwsContext *resample_ctx;
* This is free software; see GPL.txt
*/
#include <string.h>
-#include <avformat.h>
+#include <libavformat/avformat.h>
#include "input.h"
static uint64_t time_convert(uint64_t time, AVStream *st)
*
* This is free software; see GPL.txt
*/
-#include <avformat.h>
+#include <libavformat/avformat.h>
AVFormatContext *open_output_stream(const char *dst, int port, enum CodecType codec_type)
#include <unistd.h>
#include <stdlib.h>
-#include <avformat.h>
-//#include <avdevice.h>
+#include <libavformat/avformat.h>
+#include <libavdevice/avdevice.h>
+#include <libswscale/swscale.h>
#include "input.h"
#include "output.h"
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);
pkt_send(os, opkt);
}
}
- rt_job_end();
+ //rt_job_end();
av_free_packet(pkt);
}
}