Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
4d48add8
Commit
4d48add8
authored
Sep 09, 2016
by
Thilo Borgmann
Committed by
James Almer
Sep 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/alsdec: use get_bitsz() to simplify reading of the mantissa
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
6d607702
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
alsdec.c
libavcodec/alsdec.c
+1
-1
No files found.
libavcodec/alsdec.c
View file @
4d48add8
...
@@ -1527,7 +1527,7 @@ static int read_diff_float_data(ALSDecContext *ctx, unsigned int ra_frame) {
...
@@ -1527,7 +1527,7 @@ static int read_diff_float_data(ALSDecContext *ctx, unsigned int ra_frame) {
if
(
!
get_bits1
(
gb
))
{
//uncompressed
if
(
!
get_bits1
(
gb
))
{
//uncompressed
for
(
i
=
0
;
i
<
frame_length
;
++
i
)
{
for
(
i
=
0
;
i
<
frame_length
;
++
i
)
{
if
(
ctx
->
raw_samples
[
c
][
i
]
!=
0
)
{
if
(
ctx
->
raw_samples
[
c
][
i
]
!=
0
)
{
raw_mantissa
[
c
][
i
]
=
nbits
[
i
]
?
get_bits
(
gb
,
nbits
[
i
])
:
0
;
raw_mantissa
[
c
][
i
]
=
get_bitsz
(
gb
,
nbits
[
i
])
;
}
}
}
}
}
else
{
//compressed
}
else
{
//compressed
...
...
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