use new metadata API in rtsp demuxer

Originally committed as revision 16961 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2009-02-02 23:09:39 +00:00
parent f3650b239e
commit da61e4136a

View File

@ -376,11 +376,11 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
} }
break; break;
case 's': case 's':
av_strlcpy(s->title, p, sizeof(s->title)); av_metadata_set(&s->metadata, "title", p);
break; break;
case 'i': case 'i':
if (s->nb_streams == 0) { if (s->nb_streams == 0) {
av_strlcpy(s->comment, p, sizeof(s->comment)); av_metadata_set(&s->metadata, "comment", p);
break; break;
} }
break; break;