X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibilbc.c;h=fe1fa39718937cf5fe6bb4c7060a376a7479f865;hb=7ea5dbcb83a502d8152d5c64d32f9a16e7e907c7;hp=80f1ac56882b358ef00571ac48c68a897857014c;hpb=633b90ca8d5fbdac4e54b0d6b054e273b3a5efa5;p=ffmpeg diff --git a/libavcodec/libilbc.c b/libavcodec/libilbc.c index 80f1ac56882..fe1fa397189 100644 --- a/libavcodec/libilbc.c +++ b/libavcodec/libilbc.c @@ -22,6 +22,7 @@ #include #include "avcodec.h" +#include "libavutil/common.h" #include "libavutil/opt.h" #include "internal.h" @@ -45,7 +46,7 @@ typedef struct ILBCDecContext { } ILBCDecContext; static const AVOption ilbc_dec_options[] = { - { "enhance", "Enhance the decoded audio (adds delay)", offsetof(ILBCDecContext, enhance), AV_OPT_TYPE_INT, { 0 }, 0, 1, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM }, + { "enhance", "Enhance the decoded audio (adds delay)", offsetof(ILBCDecContext, enhance), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_DECODING_PARAM }, { NULL } }; @@ -125,7 +126,7 @@ typedef struct ILBCEncContext { } ILBCEncContext; static const AVOption ilbc_enc_options[] = { - { "mode", "iLBC mode (20 or 30 ms frames)", offsetof(ILBCEncContext, mode), AV_OPT_TYPE_INT, { 20 }, 20, 30, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM }, + { "mode", "iLBC mode (20 or 30 ms frames)", offsetof(ILBCEncContext, mode), AV_OPT_TYPE_INT, { .i64 = 20 }, 20, 30, AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM }, { NULL } };