Ronald S. Bultje <[email protected]> added the comment:
Input #0, rtsp, from 'rtsp://djxmmx.net/Rap-RnB':
Metadata:
genre : Rap
WMFSDKVersion : 11.0.6002.18049
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
album : Double Trouble
track : 4
WM/Year : 2007
title : U Aint Gotta Ask
artist : Al Fatz & Chip Tha Ripper
copyright :
comment :
Duration: 00:03:06.64, start: 123.965000, bitrate: 128 kb/s
Stream #0.0: Audio: wmapro, 44100 Hz, stereo, flt, 128 kb/s
Stream #0.1: Data: [0][0][0][0] / 0x0000
127.58 A-V: 0.000 s:0.0 aq= 94KB vq= 0KB sq= 0B f=0/0
________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2478>
________________________________________________
Index: libavformat/rtpdec_asf.c
===================================================================
--- libavformat/rtpdec_asf.c (revision 26130)
+++ libavformat/rtpdec_asf.c (working copy)
@@ -96,6 +96,7 @@
int ret = 0;
if (av_strstart(p, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,",
&p)) {
ByteIOContext pb;
+ AVMetadataTag *t;
RTSPState *rt = s->priv_data;
int len = strlen(p) * 6 / 8;
char *buf = av_mallocz(len);
@@ -112,6 +113,9 @@
ret = av_open_input_stream(&rt->asf_ctx, &pb, "", &asf_demuxer, NULL);
if (ret < 0)
return ret;
+ while ((t = av_metadata_get(rt->asf_ctx->metadata, "", t,
+ AV_METADATA_IGNORE_SUFFIX)))
+ av_metadata_set2(&s->metadata, t->key, t->value, 0);
rt->asf_pb_pos = url_ftell(&pb);
av_free(buf);
rt->asf_ctx->pb = NULL;