if (stream->pid) {
avio_printf(pb, "Running as pid %d.\n", stream->pid);
-#if defined(linux) && !defined(CONFIG_NOCUTILS)
+#if defined(linux)
{
FILE *pid_stat;
char ps_cmd[64];
{
AVFormatContext *avc;
AVStream *avs = NULL;
+ AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
int i;
avc = avformat_alloc_context();
- if (avc == NULL) {
+ if (avc == NULL || !rtp_format) {
return -1;
}
+ avc->oformat = rtp_format;
av_dict_set(&avc->metadata, "title",
stream->title[0] ? stream->title : "No Title", 0);
avc->nb_streams = stream->nb_streams;