+/*
+ * Copyright (c) 2008 Luca Abeni
+ *
+ * This is free software; see GPL.txt
+ */
#include <unistd.h>
#include <stdlib.h>
-#include "libavformat/avformat.h"
-#include "libavdevice/avdevice.h"
+#include <libavformat/avformat.h>
+#include <libavdevice/avdevice.h>
+#include <libswscale/swscale.h>
#include "input.h"
#include "output.h"
static int dport = 20000;
static int width = 352;
static int height = 288;
-static int fps = 25;
+int fps = 25;
static void sdp_print(AVFormatContext *s, const char *fname)
{
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);
}
}