aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-09 23:34:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-09 23:39:06 +0100
commitcbe43e62c9ac7d4aefdc13476f6f691bd626525f (patch)
tree8b441bc79ee3d571fc698e790608fb6d4dd30188
parentcef28b56027c3c9ca2359a50741fc5312d627ef8 (diff)
downloadffmpeg-cbe43e62c9ac7d4aefdc13476f6f691bd626525f.tar.gz
ffserver: set oformat
Fix Ticket1986 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffserver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index 3af481ddde..d8627bd26f 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2961,12 +2961,14 @@ static int prepare_sdp_description(FFStream *stream, uint8_t **pbuffer,
{
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;