changeset 4597:ff780d8f1bbc libavformat

use new metadata API in rpl demuxer
author aurel
date Thu, 26 Feb 2009 22:38:46 +0000
parents 34aa256311f0
children 8c9ba1c9bcbc
files rpl.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rpl.c	Thu Feb 26 22:35:26 2009 +0000
+++ b/rpl.c	Thu Feb 26 22:38:46 2009 +0000
@@ -130,9 +130,12 @@
     // (The spec says that there exists some significance
     // for the text in a few cases; samples needed.)
     error |= read_line(pb, line        , sizeof(line        ));  // ARMovie
-    error |= read_line(pb, s->title    , sizeof(s->title    ));  // movie name
-    error |= read_line(pb, s->copyright, sizeof(s->copyright));  // date/copyright
-    error |= read_line(pb, s->author   , sizeof(s->author   ));  // author and other
+    error |= read_line(pb, line, sizeof(line));      // movie name
+    av_metadata_set(&s->metadata, "title"    , line);
+    error |= read_line(pb, line, sizeof(line));      // date/copyright
+    av_metadata_set(&s->metadata, "copyright", line);
+    error |= read_line(pb, line, sizeof(line));      // author and other
+    av_metadata_set(&s->metadata, "author"   , line);
 
     // video headers
     vst = av_new_stream(s, 0);