]> rtime.felk.cvut.cz Git - frescor/streamer.git/blobdiff - output.c
Contract parameters are based on encoding bitrate
[frescor/streamer.git] / output.c
index 65e0897bbdc481e699a57a16ae403e0017d82575..b5d60e64216f082e0586fc6552a405da2e8df8dc 100644 (file)
--- a/output.c
+++ b/output.c
@@ -3,7 +3,7 @@
  *
  *  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)
@@ -49,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! */