mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc/g723_1enc: Set the default bitrate to 6300.
This commit is contained in:
parent
ee1c63eb82
commit
cf81284b1c
@ -1191,6 +1191,11 @@ static int g723_1_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const AVCodecDefault defaults[] = {
|
||||||
|
{ "b", "6300" },
|
||||||
|
{ NULL },
|
||||||
|
};
|
||||||
|
|
||||||
AVCodec ff_g723_1_encoder = {
|
AVCodec ff_g723_1_encoder = {
|
||||||
.name = "g723_1",
|
.name = "g723_1",
|
||||||
.long_name = NULL_IF_CONFIG_SMALL("G.723.1"),
|
.long_name = NULL_IF_CONFIG_SMALL("G.723.1"),
|
||||||
@ -1199,6 +1204,7 @@ AVCodec ff_g723_1_encoder = {
|
|||||||
.priv_data_size = sizeof(G723_1_Context),
|
.priv_data_size = sizeof(G723_1_Context),
|
||||||
.init = g723_1_encode_init,
|
.init = g723_1_encode_init,
|
||||||
.encode2 = g723_1_encode_frame,
|
.encode2 = g723_1_encode_frame,
|
||||||
|
.defaults = defaults,
|
||||||
.sample_fmts = (const enum AVSampleFormat[]) {
|
.sample_fmts = (const enum AVSampleFormat[]) {
|
||||||
AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE
|
AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user