aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-02-26 22:38:46 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-02-26 22:38:46 +0000
commitb8222b3d9c20f1d1abe5b0ec4e7efd08b7332f41 (patch)
tree4c7f0f946d55b2757951bedee31a2659318b13ec
parent0d2e86d7aee94aed5205bc9b8a031b2d5a78bb76 (diff)
downloadffmpeg-b8222b3d9c20f1d1abe5b0ec4e7efd08b7332f41.tar.gz
use new metadata API in rpl demuxer
Originally committed as revision 17628 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rpl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libavformat/rpl.c b/libavformat/rpl.c
index dd5dedf817..62efafbd4b 100644
--- a/libavformat/rpl.c
+++ b/libavformat/rpl.c
@@ -130,9 +130,12 @@ static int rpl_read_header(AVFormatContext *s, AVFormatParameters *ap)
// (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);