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