Mercurial > libavformat.hg
comparison metadata_compat.c @ 6384:2d51ca7714c3 libavformat
add LAVF_API_OLD_METADATA define to disable the deprecated metadata API
author | aurel |
---|---|
date | Tue, 17 Aug 2010 20:23:19 +0000 |
parents | 8515b7b4fe87 |
children | 4974b3d4992b |
comparison
equal
deleted
inserted
replaced
6383:65745776af68 | 6384:2d51ca7714c3 |
---|---|
21 #include <strings.h> | 21 #include <strings.h> |
22 #include "avformat.h" | 22 #include "avformat.h" |
23 #include "metadata.h" | 23 #include "metadata.h" |
24 #include "libavutil/avstring.h" | 24 #include "libavutil/avstring.h" |
25 | 25 |
26 #if LIBAVFORMAT_VERSION_MAJOR < 53 | 26 #if LAVF_API_OLD_METADATA |
27 | 27 |
28 #define SIZE_OFFSET(x) sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x) | 28 #define SIZE_OFFSET(x) sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x) |
29 | 29 |
30 static const struct { | 30 static const struct { |
31 const char name[16]; | 31 const char name[16]; |
143 FILL_METADATA_STR(ctx->streams[i], language); | 143 FILL_METADATA_STR(ctx->streams[i], language); |
144 FILL_METADATA_STR(ctx->streams[i], filename); | 144 FILL_METADATA_STR(ctx->streams[i], filename); |
145 } | 145 } |
146 } | 146 } |
147 | 147 |
148 #endif /* LIBAVFORMAT_VERSION_MAJOR < 53 */ | 148 #endif /* LAVF_API_OLD_METADATA */ |