Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fe7d8c99
Commit
fe7d8c99
authored
Feb 16, 2019
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/libgsmenc: Force mono and use 13k as default bitrate.
parent
1466dc14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
libgsmenc.c
libavcodec/libgsmenc.c
+8
-0
No files found.
libavcodec/libgsmenc.c
View file @
fe7d8c99
...
...
@@ -114,6 +114,10 @@ static int libgsm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
return
0
;
}
static
const
AVCodecDefault
libgsm_defaults
[]
=
{
{
"b"
,
"13000"
},
{
NULL
},
};
#if CONFIG_LIBGSM_ENCODER
AVCodec
ff_libgsm_encoder
=
{
...
...
@@ -124,6 +128,8 @@ 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"
,
...
...
@@ -138,6 +144,8 @@ AVCodec ff_libgsm_ms_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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment