mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
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. Originally committed as revision 22961 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -131,11 +131,11 @@ static int rpl_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
||||
// for the text in a few cases; samples needed.)
|
||||
error |= read_line(pb, line, sizeof(line)); // ARMovie
|
||||
error |= read_line(pb, line, sizeof(line)); // movie name
|
||||
av_metadata_set(&s->metadata, "title" , line);
|
||||
av_metadata_set2(&s->metadata, "title" , line, 0);
|
||||
error |= read_line(pb, line, sizeof(line)); // date/copyright
|
||||
av_metadata_set(&s->metadata, "copyright", line);
|
||||
av_metadata_set2(&s->metadata, "copyright", line, 0);
|
||||
error |= read_line(pb, line, sizeof(line)); // author and other
|
||||
av_metadata_set(&s->metadata, "author" , line);
|
||||
av_metadata_set2(&s->metadata, "author" , line, 0);
|
||||
|
||||
// video headers
|
||||
vst = av_new_stream(s, 0);
|
||||
|
Reference in New Issue
Block a user