Revision 5ee999b8 ffserver.c

View differences:

ffserver.c
2043 2043
    switch(c->state) {
2044 2044
    case HTTPSTATE_SEND_DATA_HEADER:
2045 2045
        memset(&c->fmt_ctx, 0, sizeof(c->fmt_ctx));
2046
        av_strlcpy(c->fmt_ctx.author, c->stream->author,
2047
                   sizeof(c->fmt_ctx.author));
2048
        av_strlcpy(c->fmt_ctx.comment, c->stream->comment,
2049
                   sizeof(c->fmt_ctx.comment));
2050
        av_strlcpy(c->fmt_ctx.copyright, c->stream->copyright,
2051
                   sizeof(c->fmt_ctx.copyright));
2052
        av_strlcpy(c->fmt_ctx.title, c->stream->title,
2053
                   sizeof(c->fmt_ctx.title));
2046
        av_metadata_set(&c->fmt_ctx.metadata, "author"   ,c->stream->author);
2047
        av_metadata_set(&c->fmt_ctx.metadata, "comment"  ,c->stream->comment);
2048
        av_metadata_set(&c->fmt_ctx.metadata, "copyright",c->stream->copyright);
2049
        av_metadata_set(&c->fmt_ctx.metadata, "title"    ,c->stream->title);
2054 2050

  
2055 2051
        for(i=0;i<c->stream->nb_streams;i++) {
2056 2052
            AVStream *st;
......
2721 2717
    if (avc == NULL) {
2722 2718
        return -1;
2723 2719
    }
2724
    if (stream->title[0] != 0) {
2725
        av_strlcpy(avc->title, stream->title, sizeof(avc->title));
2726
    } else {
2727
        av_strlcpy(avc->title, "No Title", sizeof(avc->title));
2728
    }
2720
    av_metadata_set(&avc->metadata, "title",
2721
                    stream->title[0] ? stream->title : "No Title");
2729 2722
    avc->nb_streams = stream->nb_streams;
2730 2723
    if (stream->is_multicast) {
2731 2724
        snprintf(avc->filename, 1024, "rtp://%s:%d?multicast=1?ttl=%d",

Also available in: Unified diff