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
8bf2d3e4
Commit
8bf2d3e4
authored
Sep 09, 2015
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/wavpackenc: use AV_OPT_TYPE_BOOL for all options
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
6603368a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
wavpackenc.c
libavcodec/wavpackenc.c
+5
-10
No files found.
libavcodec/wavpackenc.c
View file @
8bf2d3e4
...
...
@@ -1829,9 +1829,9 @@ static int wv_stereo(WavPackEncodeContext *s,
log_limit
=
(((
s
->
flags
&
MAG_MASK
)
>>
MAG_LSB
)
+
4
)
*
256
;
log_limit
=
FFMIN
(
6912
,
log_limit
);
if
(
s
->
joint
)
{
force_js
=
s
->
joint
>
0
;
force_ts
=
s
->
joint
<
0
;
if
(
s
->
joint
!=
-
1
)
{
force_js
=
s
->
joint
;
force_ts
=
!
s
->
joint
;
}
if
((
ret
=
allocate_buffers
(
s
))
<
0
)
...
...
@@ -2955,13 +2955,8 @@ static av_cold int wavpack_encode_close(AVCodecContext *avctx)
#define OFFSET(x) offsetof(WavPackEncodeContext, x)
#define FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM
static
const
AVOption
options
[]
=
{
{
"joint_stereo"
,
""
,
OFFSET
(
joint
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
-
1
,
1
,
FLAGS
,
"joint"
},
{
"on"
,
"mid/side"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
1
},
0
,
0
,
FLAGS
,
"joint"
},
{
"off"
,
"left/right"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=-
1
},
0
,
0
,
FLAGS
,
"joint"
},
{
"auto"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
0
},
0
,
0
,
FLAGS
,
"joint"
},
{
"optimize_mono"
,
""
,
OFFSET
(
optimize_mono
),
AV_OPT_TYPE_INT
,
{.
i64
=
0
},
0
,
1
,
FLAGS
,
"opt_mono"
},
{
"on"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
1
},
0
,
0
,
FLAGS
,
"opt_mono"
},
{
"off"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
0
},
0
,
0
,
FLAGS
,
"opt_mono"
},
{
"joint_stereo"
,
""
,
OFFSET
(
joint
),
AV_OPT_TYPE_BOOL
,
{.
i64
=-
1
},
-
1
,
1
,
FLAGS
},
{
"optimize_mono"
,
""
,
OFFSET
(
optimize_mono
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
0
},
0
,
1
,
FLAGS
},
{
NULL
},
};
...
...
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