comparison rpl.c @ 5982:f74198942337 libavformat

Mark av_metadata_set() as deprecated, and use av_metadata_set2() in its place. av_metadata_set() is going to be dropped at the next major bump.
author stefano
date Sun, 25 Apr 2010 14:27:42 +0000
parents 11bb10c37225
children
comparison
equal deleted inserted replaced
5981:c1cd2ffd5cdc 5982:f74198942337
129 // number usually isn't important. 129 // number usually isn't important.
130 // (The spec says that there exists some significance 130 // (The spec says that there exists some significance
131 // for the text in a few cases; samples needed.) 131 // for the text in a few cases; samples needed.)
132 error |= read_line(pb, line, sizeof(line)); // ARMovie 132 error |= read_line(pb, line, sizeof(line)); // ARMovie
133 error |= read_line(pb, line, sizeof(line)); // movie name 133 error |= read_line(pb, line, sizeof(line)); // movie name
134 av_metadata_set(&s->metadata, "title" , line); 134 av_metadata_set2(&s->metadata, "title" , line, 0);
135 error |= read_line(pb, line, sizeof(line)); // date/copyright 135 error |= read_line(pb, line, sizeof(line)); // date/copyright
136 av_metadata_set(&s->metadata, "copyright", line); 136 av_metadata_set2(&s->metadata, "copyright", line, 0);
137 error |= read_line(pb, line, sizeof(line)); // author and other 137 error |= read_line(pb, line, sizeof(line)); // author and other
138 av_metadata_set(&s->metadata, "author" , line); 138 av_metadata_set2(&s->metadata, "author" , line, 0);
139 139
140 // video headers 140 // video headers
141 vst = av_new_stream(s, 0); 141 vst = av_new_stream(s, 0);
142 if (!vst) 142 if (!vst)
143 return AVERROR(ENOMEM); 143 return AVERROR(ENOMEM);