[SCM] libav/experimental: use new metadata API in rtsp demuxer

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:36:47 UTC 2013


The following commit has been merged in the experimental branch:
commit da61e4136ab9d70ac6e851f32dde205c669b9a74
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Mon Feb 2 23:09:39 2009 +0000

    use new metadata API in rtsp demuxer
    
    Originally committed as revision 16961 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 116383e..e9be143 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -376,11 +376,11 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
         }
         break;
     case 's':
-        av_strlcpy(s->title, p, sizeof(s->title));
+        av_metadata_set(&s->metadata, "title", p);
         break;
     case 'i':
         if (s->nb_streams == 0) {
-            av_strlcpy(s->comment, p, sizeof(s->comment));
+            av_metadata_set(&s->metadata, "comment", p);
             break;
         }
         break;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list