[FFmpeg-cvslog] lavc/g723_1enc: Set the default bitrate to 6300.
Carl Eugen Hoyos
git at videolan.org
Thu Jan 24 00:26:53 EET 2019
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Tue Jan 22 12:22:23 2019 +0100| [cf81284b1c14ef28d3f94e6d28c46188ba4e82f2] | committer: Carl Eugen Hoyos
lavc/g723_1enc: Set the default bitrate to 6300.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf81284b1c14ef28d3f94e6d28c46188ba4e82f2
---
libavcodec/g723_1enc.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libavcodec/g723_1enc.c b/libavcodec/g723_1enc.c
index fe3fd09c1d..592840566e 100644
--- a/libavcodec/g723_1enc.c
+++ b/libavcodec/g723_1enc.c
@@ -1191,6 +1191,11 @@ static int g723_1_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
return 0;
}
+static const AVCodecDefault defaults[] = {
+ { "b", "6300" },
+ { NULL },
+};
+
AVCodec ff_g723_1_encoder = {
.name = "g723_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),
.init = g723_1_encode_init,
.encode2 = g723_1_encode_frame,
+ .defaults = defaults,
.sample_fmts = (const enum AVSampleFormat[]) {
AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE
},
More information about the ffmpeg-cvslog
mailing list