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
5ba811bd
Commit
5ba811bd
authored
Sep 16, 2015
by
Rostislav Pehlivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacenc_tns: fix coefficient compression condition
Signed-off-by:
Rostislav Pehlivanov
<
atomnuker@gmail.com
>
parent
a860adb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
aacenc_tns.c
libavcodec/aacenc_tns.c
+1
-1
aac.mak
tests/fate/aac.mak
+1
-1
No files found.
libavcodec/aacenc_tns.c
View file @
5ba811bd
...
...
@@ -41,7 +41,7 @@ static inline int compress_coeffs(int *coef, int order, int c_bits)
const
int
shift_val
=
c_bits
?
8
:
4
;
const
int
high_idx
=
c_bits
?
11
:
5
;
for
(
i
=
0
;
i
<
order
;
i
++
)
if
(
coef
[
i
]
<
low_idx
&&
coef
[
i
]
>
high_idx
)
if
(
coef
[
i
]
<
low_idx
||
coef
[
i
]
>
high_idx
)
res
++
;
if
(
res
==
order
)
for
(
i
=
0
;
i
<
order
;
i
++
)
...
...
tests/fate/aac.mak
View file @
5ba811bd
...
...
@@ -172,7 +172,7 @@ fate-aac-tns-encode: CMD = enc_dec_pcm adts wav s16le $(TARGET_SAMPLES)/audio-re
fate-aac-tns-encode: CMP = stddev
fate-aac-tns-encode: REF = $(SAMPLES)/audio-reference/luckynight_2ch_44kHz_s16.wav
fate-aac-tns-encode: CMP_SHIFT = -4096
fate-aac-tns-encode: CMP_TARGET = 6
48.80
fate-aac-tns-encode: CMP_TARGET = 6
50.28
fate-aac-tns-encode: FUZZ = 2.8
fate-aac-tns-encode: SIZE_TOLERANCE = 3560
...
...
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