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
fe0089a6
Commit
fe0089a6
authored
Jan 26, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: fix -qscale X breaking audio codecs
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7ed6b1a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
ffmpeg.c
ffmpeg.c
+15
-1
No files found.
ffmpeg.c
View file @
fe0089a6
...
...
@@ -4918,6 +4918,20 @@ static int opt_bitrate(OptionsContext *o, const char *opt, const char *arg)
return
opt_default
(
opt
,
arg
);
}
static
int
opt_qscale
(
OptionsContext
*
o
,
const
char
*
opt
,
const
char
*
arg
)
{
char
*
s
;
int
ret
;
if
(
!
strcmp
(
opt
,
"qscale"
)){
av_log
(
0
,
AV_LOG_WARNING
,
"Please use -q:a or -q:v, -qscale is ambiguous
\n
"
);
return
parse_option
(
o
,
"q:v"
,
arg
,
options
);
}
s
=
av_asprintf
(
"q%s"
,
opt
+
6
);
ret
=
parse_option
(
o
,
s
,
arg
,
options
);
av_free
(
s
);
return
ret
;
}
static
int
opt_video_filters
(
OptionsContext
*
o
,
const
char
*
opt
,
const
char
*
arg
)
{
return
parse_option
(
o
,
"filter:v"
,
arg
,
options
);
...
...
@@ -4981,7 +4995,7 @@ static const OptionDef options[] = {
{
"frames"
,
OPT_INT64
|
HAS_ARG
|
OPT_SPEC
,
{.
off
=
OFFSET
(
max_frames
)},
"set the number of frames to record"
,
"number"
},
{
"tag"
,
OPT_STRING
|
HAS_ARG
|
OPT_SPEC
,
{.
off
=
OFFSET
(
codec_tags
)},
"force codec tag/fourcc"
,
"fourcc/tag"
},
{
"q"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_DOUBLE
|
OPT_SPEC
,
{.
off
=
OFFSET
(
qscale
)},
"use fixed quality scale (VBR)"
,
"q"
},
{
"qscale"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_
DOUBLE
|
OPT_SPEC
,
{.
off
=
OFFSET
(
qscale
)
},
"use fixed quality scale (VBR)"
,
"q"
},
{
"qscale"
,
HAS_ARG
|
OPT_EXPERT
|
OPT_
FUNC2
,
{(
void
*
)
opt_qscale
},
"use fixed quality scale (VBR)"
,
"q"
},
#if CONFIG_AVFILTER
{
"filter"
,
HAS_ARG
|
OPT_STRING
|
OPT_SPEC
,
{.
off
=
OFFSET
(
filters
)},
"set stream filterchain"
,
"filter_list"
},
#endif
...
...
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