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
c3a92412
Commit
c3a92412
authored
Oct 09, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alacdec: always use get_sbits_long() for uncompressed samples
parent
b46e58f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
alac.c
libavcodec/alac.c
+1
-11
No files found.
libavcodec/alac.c
View file @
c3a92412
...
...
@@ -481,22 +481,12 @@ static int alac_decode_frame(AVCodecContext *avctx,
}
else
{
/* not compressed, easy case */
int
i
,
chan
;
if
(
alac
->
setinfo_sample_size
<=
16
)
{
for
(
i
=
0
;
i
<
outputsamples
;
i
++
)
for
(
chan
=
0
;
chan
<
channels
;
chan
++
)
{
alac
->
outputsamples_buffer
[
chan
][
i
]
=
get_sbits_long
(
&
alac
->
gb
,
alac
->
setinfo_sample_size
);
}
}
else
{
for
(
i
=
0
;
i
<
outputsamples
;
i
++
)
{
for
(
chan
=
0
;
chan
<
channels
;
chan
++
)
{
alac
->
outputsamples_buffer
[
chan
][
i
]
=
get_bits
(
&
alac
->
gb
,
alac
->
setinfo_sample_size
);
alac
->
outputsamples_buffer
[
chan
][
i
]
=
sign_extend
(
alac
->
outputsamples_buffer
[
chan
][
i
],
alac
->
outputsamples_buffer
[
chan
][
i
]
=
get_sbits_long
(
&
alac
->
gb
,
alac
->
setinfo_sample_size
);
}
}
}
alac
->
extra_bits
=
0
;
interlacing_shift
=
0
;
interlacing_leftweight
=
0
;
...
...
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