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
0d81edcb
Commit
0d81edcb
authored
May 02, 2020
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/opus: Reset alloc_trim when doing decoder bit-allocation.
Fixes ticket #8649. Reported-by: irc user Xogium
parent
ed3da725
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
opus.c
libavcodec/opus.c
+2
-0
No files found.
libavcodec/opus.c
View file @
0d81edcb
...
...
@@ -613,6 +613,8 @@ void ff_celt_bitalloc(CeltFrame *f, OpusRangeCoder *rc, int encode)
}
/* Allocation trim */
if
(
!
encode
)
f
->
alloc_trim
=
5
;
if
(
opus_rc_tell_frac
(
rc
)
+
(
6
<<
3
)
<=
tbits_8ths
)
if
(
encode
)
ff_opus_rc_enc_cdf
(
rc
,
f
->
alloc_trim
,
ff_celt_model_alloc_trim
);
...
...
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