You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffserver: set oformat
Fix Ticket1986 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2961,12 +2961,14 @@ static int prepare_sdp_description(FFStream *stream, uint8_t **pbuffer,
|
|||||||
{
|
{
|
||||||
AVFormatContext *avc;
|
AVFormatContext *avc;
|
||||||
AVStream *avs = NULL;
|
AVStream *avs = NULL;
|
||||||
|
AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
avc = avformat_alloc_context();
|
avc = avformat_alloc_context();
|
||||||
if (avc == NULL) {
|
if (avc == NULL || !rtp_format) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
avc->oformat = rtp_format;
|
||||||
av_dict_set(&avc->metadata, "title",
|
av_dict_set(&avc->metadata, "title",
|
||||||
stream->title[0] ? stream->title : "No Title", 0);
|
stream->title[0] ? stream->title : "No Title", 0);
|
||||||
avc->nb_streams = stream->nb_streams;
|
avc->nb_streams = stream->nb_streams;
|
||||||
|
Reference in New Issue
Block a user