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
e3b7079d
Commit
e3b7079d
authored
Apr 07, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adpcmenc: fix encoded s_0 value.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fe5b7db0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
adpcmenc.c
libavcodec/adpcmenc.c
+1
-1
adpcm_ima_qt
tests/ref/acodec/adpcm_ima_qt
+3
-3
No files found.
libavcodec/adpcmenc.c
View file @
e3b7079d
...
...
@@ -571,7 +571,7 @@ static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
init_put_bits
(
&
pb
,
dst
,
pkt_size
*
8
);
for
(
ch
=
0
;
ch
<
avctx
->
channels
;
ch
++
)
{
put_bits
(
&
pb
,
9
,
(
c
->
status
[
ch
].
prev_sample
+
0x10000
)
>>
7
);
put_bits
(
&
pb
,
9
,
(
c
->
status
[
ch
].
prev_sample
&
0xFFFF
)
>>
7
);
put_bits
(
&
pb
,
7
,
c
->
status
[
ch
].
step_index
);
if
(
avctx
->
trellis
>
0
)
{
uint8_t
buf
[
64
];
...
...
tests/ref/acodec/adpcm_ima_qt
View file @
e3b7079d
057d27978b35888776512e4e9669a63b
*./tests/data/acodec/adpcm_qt.aiff
23cbae1182e150ebf28e0abfb9cba127
*./tests/data/acodec/adpcm_qt.aiff
281252 ./tests/data/acodec/adpcm_qt.aiff
169c40435c68d50112c9c61fc67e446d
*./tests/data/adpcm_ima_qt.acodec.out.wav
stddev: 9
18.61 PSNR: 37.07
MAXDIFF:34029 bytes: 1058560/ 1058400
b0fafd002c38fb70acaddfda1a31ed61
*./tests/data/adpcm_ima_qt.acodec.out.wav
stddev: 9
04.76 PSNR: 37.20
MAXDIFF:34029 bytes: 1058560/ 1058400
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