Remove all uses of now deprecated metadata functions.

This commit is contained in:
Anton Khirnov
2011-05-22 12:46:29 +02:00
parent d9f80ea2a7
commit d2d67e424f
55 changed files with 263 additions and 218 deletions

View File

@@ -30,6 +30,7 @@
*/
#include "libavutil/intreadwrite.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "pcm.h"
#include "sox.h"
@@ -101,8 +102,8 @@ static int sox_read_header(AVFormatContext *s,
}
comment[comment_size] = 0;
av_metadata_set2(&s->metadata, "comment", comment,
AV_METADATA_DONT_STRDUP_VAL);
av_dict_set(&s->metadata, "comment", comment,
AV_DICT_DONT_STRDUP_VAL);
}
avio_skip(pb, header_size - SOX_FIXED_HDR - comment_size);