Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
0a593de3
Commit
0a593de3
authored
Aug 20, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp2 encoder: make 128k the default bitrate.
parent
fb42d156
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mpegaudioenc.c
libavcodec/mpegaudioenc.c
+7
-0
No files found.
libavcodec/mpegaudioenc.c
View file @
0a593de3
...
...
@@ -25,6 +25,7 @@
*/
#include "avcodec.h"
#include "internal.h"
#include "put_bits.h"
#define FRAC_BITS 15
/* fractional bits for sb_samples and dct */
...
...
@@ -759,6 +760,11 @@ static av_cold int MPA_encode_close(AVCodecContext *avctx)
return
0
;
}
static
const
AVCodecDefault
mp2_defaults
[]
=
{
{
"b"
,
"128k"
},
{
NULL
},
};
AVCodec
ff_mp2_encoder
=
{
.
name
=
"mp2"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
...
...
@@ -770,4 +776,5 @@ AVCodec ff_mp2_encoder = {
.
sample_fmts
=
(
const
enum
AVSampleFormat
[]){
AV_SAMPLE_FMT_S16
,
AV_SAMPLE_FMT_NONE
},
.
supported_samplerates
=
(
const
int
[]){
44100
,
48000
,
32000
,
22050
,
24000
,
16000
,
0
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MP2 (MPEG audio layer 2)"
),
.
defaults
=
mp2_defaults
,
};
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