]> rtime.felk.cvut.cz Git - frescor/streamer.git/blobdiff - output.c
Contract parameters are based on encoding bitrate
[frescor/streamer.git] / output.c
index fb3d419f212a198809be13987825cbf5dbf14fe7..b5d60e64216f082e0586fc6552a405da2e8df8dc 100644 (file)
--- a/output.c
+++ b/output.c
@@ -1,4 +1,9 @@
-#include "libavformat/avformat.h"
+/*
+ *  Copyright (c) 2008 Luca Abeni
+ *
+ *  This is free software; see GPL.txt
+ */
+#include <libavformat/avformat.h>
 
 
 AVFormatContext *open_output_stream(const char *dst, int port, enum CodecType codec_type)
@@ -44,6 +49,12 @@ AVFormatContext *open_output_stream(const char *dst, int port, enum CodecType co
     return s;
 }
 
+int close_output_stream(AVFormatContext *s)
+{
+  url_fclose(s->pb);
+  return 0;
+}
+
 int pkt_send(AVFormatContext *ctx, AVPacket *pkt)
 {
   static int inited;           /* FIXME: HACK! */