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
0b5adc35
Commit
0b5adc35
authored
Nov 30, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/adxenc: fix rounding
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
6b0ab561
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
adxenc.c
libavcodec/adxenc.c
+1
-1
adpcm-adx
tests/ref/acodec/adpcm-adx
+3
-3
adpcm-adx-trellis
tests/ref/acodec/adpcm-adx-trellis
+3
-3
No files found.
libavcodec/adxenc.c
View file @
0b5adc35
...
...
@@ -81,7 +81,7 @@ static void adx_encode(ADXContext *c, uint8_t *adx, const int16_t *wav,
for
(
i
=
0
,
j
=
0
;
j
<
32
;
i
+=
channels
,
j
++
)
{
d
=
((
wav
[
i
]
<<
COEFF_BITS
)
-
c
->
coeff
[
0
]
*
s1
-
c
->
coeff
[
1
]
*
s2
)
>>
COEFF_BITS
;
d
=
av_clip
(
d
/
scale
,
-
8
,
7
);
d
=
av_clip
(
ROUNDED_DIV
(
d
,
scale
)
,
-
8
,
7
);
put_sbits
(
&
pb
,
4
,
d
);
...
...
tests/ref/acodec/adpcm-adx
View file @
0b5adc35
d
82a87942d6500adb4d07d21cbcbdb78
*tests/data/fate/acodec-adpcm-adx.adx
d
7ec7d52a2f5c91464812d031b07cc1d
*tests/data/fate/acodec-adpcm-adx.adx
297720 tests/data/fate/acodec-adpcm-adx.adx
4e78a1153eb8fc4dfc050836f46b62f8
*tests/data/fate/acodec-adpcm-adx.out.wav
stddev:
3096.24 PSNR: 26.51 MAXDIFF:53110
bytes: 1058400/ 1058432
5b5a436ec9d528d6eb0bebaf667521b0
*tests/data/fate/acodec-adpcm-adx.out.wav
stddev:
2549.93 PSNR: 28.20 MAXDIFF:57514
bytes: 1058400/ 1058432
tests/ref/acodec/adpcm-adx-trellis
View file @
0b5adc35
d
82a87942d6500adb4d07d21cbcbdb78
*tests/data/fate/acodec-adpcm-adx-trellis.adx
d
7ec7d52a2f5c91464812d031b07cc1d
*tests/data/fate/acodec-adpcm-adx-trellis.adx
297720 tests/data/fate/acodec-adpcm-adx-trellis.adx
4e78a1153eb8fc4dfc050836f46b62f8
*tests/data/fate/acodec-adpcm-adx-trellis.out.wav
stddev:
3096.24 PSNR: 26.51 MAXDIFF:53110
bytes: 1058400/ 1058432
5b5a436ec9d528d6eb0bebaf667521b0
*tests/data/fate/acodec-adpcm-adx-trellis.out.wav
stddev:
2549.93 PSNR: 28.20 MAXDIFF:57514
bytes: 1058400/ 1058432
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