Browse code

Copy metadata from ASF files contained in RTSP streams from ASF to RTSP layer, so that applications can read it also.

Originally committed as revision 26332 to svn://svn.ffmpeg.org/ffmpeg/trunk

Ronald S. Bultje authored on 2011/01/15 04:44:44
Showing 1 changed files
... ...
@@ -112,6 +112,7 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)
112 112
         ret = av_open_input_stream(&rt->asf_ctx, &pb, "", &asf_demuxer, NULL);
113 113
         if (ret < 0)
114 114
             return ret;
115
+        av_metadata_copy(&s->metadata, rt->asf_ctx->metadata, 0);
115 116
         rt->asf_pb_pos = url_ftell(&pb);
116 117
         av_free(buf);
117 118
         rt->asf_ctx->pb = NULL;