return 0;
}
+static const AVCodecDefault libgsm_defaults[] = {
+ { "b", "13000" },
+ { NULL },
+};
#if CONFIG_LIBGSM_ENCODER
AVCodec ff_libgsm_encoder = {
.init = libgsm_encode_init,
.encode2 = libgsm_encode_frame,
.close = libgsm_encode_close,
+ .defaults = libgsm_defaults,
+ .channel_layouts= (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE },
.wrapper_name = "libgsm",
.init = libgsm_encode_init,
.encode2 = libgsm_encode_frame,
.close = libgsm_encode_close,
+ .defaults = libgsm_defaults,
+ .channel_layouts= (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 },
.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16,
AV_SAMPLE_FMT_NONE },
.wrapper_name = "libgsm",