Revision f3650b23

View differences:

libavformat/sdp.c
64 64
                            s->sdp_version,
65 65
                            s->id, s->version, s->src_addr,
66 66
                            s->start_time, s->end_time,
67
                            s->name[0] ? s->name : "No Name");
67
                            s->name);
68 68
    sdp_write_address(buff, size, s->dst_addr, s->ttl);
69 69
}
70 70

  
......
256 256

  
257 257
int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
258 258
{
259
    AVMetadataTag *title = av_metadata_get(ac[0]->metadata, "title", NULL, 0);
259 260
    struct sdp_session_level s;
260 261
    int i, j, port, ttl;
261 262
    char dst[32];
......
264 265
    memset(&s, 0, sizeof(struct sdp_session_level));
265 266
    s.user = "-";
266 267
    s.src_addr = "127.0.0.1";    /* FIXME: Properly set this */
267
    s.name = ac[0]->title;
268
    s.name = title ? title->value : "No Name";
268 269

  
269 270
    port = 0;
270 271
    ttl = 0;

Also available in: Unified diff