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
5dc37a5d
Commit
5dc37a5d
authored
Jan 25, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dcaenc: do not change user requested bitrate
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
06f65fd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
dcaenc.c
libavcodec/dcaenc.c
+0
-1
No files found.
libavcodec/dcaenc.c
View file @
5dc37a5d
...
...
@@ -157,7 +157,6 @@ static int encode_init(AVCodecContext *avctx)
for
(
i
=
0
;
ff_dca_bit_rates
[
i
]
<
avctx
->
bit_rate
;
i
++
)
;
c
->
bitrate_index
=
i
;
avctx
->
bit_rate
=
ff_dca_bit_rates
[
i
];
c
->
frame_bits
=
FFALIGN
((
avctx
->
bit_rate
*
512
+
avctx
->
sample_rate
-
1
)
/
avctx
->
sample_rate
,
32
);
min_frame_bits
=
132
+
(
493
+
28
*
32
)
*
c
->
fullband_channels
+
c
->
lfe_channel
*
72
;
if
(
c
->
frame_bits
<
min_frame_bits
||
c
->
frame_bits
>
(
DCA_MAX_FRAME_SIZE
<<
3
))
...
...
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