diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-25 14:27:42 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-04-25 14:27:42 +0000 |
commit | 2ef6c1242aeebf863b86f34229490a023bfe65dc (patch) | |
tree | c6ab0ec0003050c62ce4d19b36935c9dd4cb7a64 /libavformat/id3v1.c | |
parent | 472e12f510dc5cc457edd2b1543bacfe9f952f2a (diff) | |
download | ffmpeg-2ef6c1242aeebf863b86f34229490a023bfe65dc.tar.gz |
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
Diffstat (limited to 'libavformat/id3v1.c')
-rw-r--r-- | libavformat/id3v1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/id3v1.c b/libavformat/id3v1.c index b1e3dc3a62..c72fca49cb 100644 --- a/libavformat/id3v1.c +++ b/libavformat/id3v1.c @@ -192,7 +192,7 @@ static void get_string(AVFormatContext *s, const char *key, *q = '\0'; if (*str) - av_metadata_set(&s->metadata, key, str); + av_metadata_set2(&s->metadata, key, str, 0); } /** @@ -217,7 +217,7 @@ static int parse_tag(AVFormatContext *s, const uint8_t *buf) av_metadata_set2(&s->metadata, "track", av_d2str(buf[126]), AV_METADATA_DONT_STRDUP_VAL); genre = buf[127]; if (genre <= ID3v1_GENRE_MAX) - av_metadata_set(&s->metadata, "genre", ff_id3v1_genre_str[genre]); + av_metadata_set2(&s->metadata, "genre", ff_id3v1_genre_str[genre], 0); return 0; } |