summaryrefslogtreecommitdiff
path: root/libavformat/tty.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-22 12:46:29 +0200
committerAnton Khirnov <anton@khirnov.net>2011-06-08 07:43:45 +0200
commitd2d67e424fa10d883e13709095c80bd3b502ce03 (patch)
tree3ff3180c011e728fbda17dd40e200c0f4946eb07 /libavformat/tty.c
parentd9f80ea2a7325f9c84307568843512811a99baff (diff)
downloadffmpeg-d2d67e424fa10d883e13709095c80bd3b502ce03.tar.gz
Remove all uses of now deprecated metadata functions.
Diffstat (limited to 'libavformat/tty.c')
-rw-r--r--libavformat/tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/tty.c b/libavformat/tty.c
index ecd3f58c77..ee6b2f1334 100644
--- a/libavformat/tty.c
+++ b/libavformat/tty.c
@@ -27,6 +27,7 @@
#include "libavutil/intreadwrite.h"
#include "libavutil/avstring.h"
#include "libavutil/log.h"
+#include "libavutil/dict.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avformat.h"
@@ -60,7 +61,7 @@ static int efi_read(AVFormatContext *avctx, uint64_t start_pos)
return -1; \
if (avio_read(pb, buf, size) == size) { \
buf[len] = 0; \
- av_metadata_set2(&avctx->metadata, name, buf, 0); \
+ av_dict_set(&avctx->metadata, name, buf, 0); \
}
GET_EFI_META("filename", 12)