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
b71f62a9
Commit
b71f62a9
authored
Feb 18, 2017
by
Rostislav Pehlivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opusenc: initialize the emphasis coefficients on init
Signed-off-by:
Rostislav Pehlivanov
<
atomnuker@gmail.com
>
parent
4bc7268f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
opusenc.c
libavcodec/opusenc.c
+3
-0
No files found.
libavcodec/opusenc.c
View file @
b71f62a9
...
...
@@ -1077,6 +1077,9 @@ static av_cold int opus_encode_init(AVCodecContext *avctx)
if
((
ret
=
ff_mdct15_init
(
&
s
->
mdct
[
i
],
0
,
i
+
3
,
68
<<
(
CELT_BLOCK_NB
-
1
-
i
))))
return
AVERROR
(
ENOMEM
);
for
(
i
=
0
;
i
<
OPUS_MAX_FRAMES_PER_PACKET
;
i
++
)
s
->
frame
[
i
].
block
[
0
].
emph_coeff
=
s
->
frame
[
i
].
block
[
1
].
emph_coeff
=
0
.
0
f
;
/* Zero out previous energy (matters for inter first frame) */
for
(
ch
=
0
;
ch
<
s
->
channels
;
ch
++
)
for
(
i
=
0
;
i
<
CELT_MAX_BANDS
;
i
++
)
...
...
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