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
729d821f
Commit
729d821f
authored
Mar 30, 2013
by
Paul B Mahol
Committed by
Vittorio Giovara
Mar 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libmp3lame: allow joint stereo to be disabled
parent
12789d96
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
libmp3lame.c
libavcodec/libmp3lame.c
+3
-1
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/libmp3lame.c
View file @
729d821f
...
...
@@ -48,6 +48,7 @@ typedef struct LAMEContext {
int
buffer_index
;
int
buffer_size
;
int
reservoir
;
int
joint_stereo
;
float
*
samples_flt
[
2
];
AudioFrameQueue
afq
;
AVFloatDSPContext
fdsp
;
...
...
@@ -96,7 +97,7 @@ static av_cold int mp3lame_encode_init(AVCodecContext *avctx)
return
AVERROR
(
ENOMEM
);
lame_set_num_channels
(
s
->
gfp
,
avctx
->
channels
);
lame_set_mode
(
s
->
gfp
,
avctx
->
channels
>
1
?
JOINT_
STEREO
:
MONO
);
lame_set_mode
(
s
->
gfp
,
avctx
->
channels
>
1
?
s
->
joint_stereo
?
JOINT_STEREO
:
STEREO
:
MONO
);
/* sample rate */
lame_set_in_samplerate
(
s
->
gfp
,
avctx
->
sample_rate
);
...
...
@@ -260,6 +261,7 @@ static int mp3lame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
#define AE AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
static
const
AVOption
options
[]
=
{
{
"reservoir"
,
"Use bit reservoir."
,
OFFSET
(
reservoir
),
AV_OPT_TYPE_INT
,
{
.
i64
=
1
},
0
,
1
,
AE
},
{
"joint_stereo"
,
"Use joint stereo."
,
OFFSET
(
joint_stereo
),
AV_OPT_TYPE_INT
,
{
.
i64
=
1
},
0
,
1
,
AE
},
{
NULL
},
};
...
...
libavcodec/version.h
View file @
729d821f
...
...
@@ -30,7 +30,7 @@
#define LIBAVCODEC_VERSION_MAJOR 55
#define LIBAVCODEC_VERSION_MINOR 41
#define LIBAVCODEC_VERSION_MICRO
0
#define LIBAVCODEC_VERSION_MICRO
1
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
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