]> rtime.felk.cvut.cz Git - frescor/streamer.git/blobdiff - output.c
.
[frescor/streamer.git] / output.c
index 939be997898f9ff0c26a2639fae0662eb9bb7b50..fe67b091f3ffacfcc9a10870536dc57f3a24dfc7 100644 (file)
--- a/output.c
+++ b/output.c
@@ -8,7 +8,7 @@ AVFormatContext *open_output_stream(const char *dst, int port, enum CodecType co
     AVStream *st;
 
     s = av_alloc_format_context();
-    rtp_format = guess_format("rtp", NULL, NULL);
+    rtp_format = guess_format("avi", NULL, NULL);
     if (!rtp_format) {
         fprintf(stderr, "Unable for find the RTP format for output\n");
 
@@ -23,7 +23,7 @@ AVFormatContext *open_output_stream(const char *dst, int port, enum CodecType co
         return NULL;
     }
 
-    snprintf(s->filename, sizeof(s->filename), "rtp://%s:%d", dst, port);
+    snprintf(s->filename, sizeof(s->filename), "test.avi");
         
     /* open the UDP sockets for RTP and RTCP */
     if (url_fopen(&s->pb, s->filename, URL_WRONLY) < 0) {