diff options
author | Robin KAY <komadori@users.sourceforge.net> | 2003-04-05 22:42:28 +0000 |
---|---|---|
committer | Robin KAY <komadori@users.sourceforge.net> | 2003-04-05 22:42:28 +0000 |
commit | 52868140ed8175b91fb0e85e5d85684c1228b1e9 (patch) | |
tree | d80003980f23d593d0d38aee0f219ad89678b5b1 /src/libffmpeg/libavcodec/common.h | |
parent | 9b228ee8af1b1809efcccdb94218b565c53a5652 (diff) | |
download | xine-lib-52868140ed8175b91fb0e85e5d85684c1228b1e9.tar.gz xine-lib-52868140ed8175b91fb0e85e5d85684c1228b1e9.tar.bz2 |
Fixes for C89 compliance. The libffmpeg-devel people are targeting C99 so they don't want patches. However, I'm packaging xine for blastwave.org (we package software for Solaris) and we don't have a C99 compliant version of Sun Workshop yet (and gcc is poor on SPARC by comparison) so I'm making these patches to libffmpeg/libavcodec as necessary -_-.
CVS patchset: 4541
CVS date: 2003/04/05 22:42:28
Diffstat (limited to 'src/libffmpeg/libavcodec/common.h')
-rw-r--r-- | src/libffmpeg/libavcodec/common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libffmpeg/libavcodec/common.h b/src/libffmpeg/libavcodec/common.h index 6c0271916..26ec68e2e 100644 --- a/src/libffmpeg/libavcodec/common.h +++ b/src/libffmpeg/libavcodec/common.h @@ -53,10 +53,10 @@ #define AVOPTION_CODEC_INT(name, help, field, minv, maxv, defval) \ { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_INT, minv, maxv, defval } #define AVOPTION_CODEC_STRING(name, help, field, str, val) \ - { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_STRING, .defval = val, .defstr = str } + { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_STRING, 0, 0, val, str } #define AVOPTION_CODEC_RCOVERRIDE(name, help, field) \ - { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_RCOVERRIDE, .defval = 0, .defstr = NULL } -#define AVOPTION_SUB(ptr) { .name = NULL, .help = (const char*)ptr } + { name, help, offsetof(AVCodecContext, field), FF_OPT_TYPE_RCOVERRIDE, 0, 0, 0, NULL } +#define AVOPTION_SUB(ptr) { NULL, (const char*)ptr } #define AVOPTION_END() AVOPTION_SUB(NULL) struct AVOption; |