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
dc405cc1
Commit
dc405cc1
authored
Feb 19, 2009
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A try to fix the regressions.
Originally committed as revision 17459 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
edf9b2f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
wmaenc.c
libavcodec/wmaenc.c
+4
-0
No files found.
libavcodec/wmaenc.c
View file @
dc405cc1
...
@@ -287,6 +287,10 @@ static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
...
@@ -287,6 +287,10 @@ static int encode_block(WMACodecContext *s, float (*src_coefs)[BLOCK_MAX_SIZE],
if
(
1
<<
coef_nb_bits
<=
abs_level
)
if
(
1
<<
coef_nb_bits
<=
abs_level
)
return
-
1
;
return
-
1
;
//Workaround minor rounding differences for the regression tests, FIXME we should find and replace the problematic float by fixpoint for reg tests
if
(
abs_level
==
0x71B
&&
(
s
->
avctx
->
flags
&
CODEC_FLAG_BITEXACT
))
abs_level
=
0x71A
;
put_bits
(
&
s
->
pb
,
coef_nb_bits
,
abs_level
);
put_bits
(
&
s
->
pb
,
coef_nb_bits
,
abs_level
);
put_bits
(
&
s
->
pb
,
s
->
frame_len_bits
,
run
);
put_bits
(
&
s
->
pb
,
s
->
frame_len_bits
,
run
);
}
}
...
...
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