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");
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) {