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
c5d2d3dc
Commit
c5d2d3dc
authored
May 05, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/alac: fix 20-bit support
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
f1560dbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
alac.c
libavcodec/alac.c
+7
-0
No files found.
libavcodec/alac.c
View file @
c5d2d3dc
...
...
@@ -391,6 +391,12 @@ static int decode_element(AVCodecContext *avctx, AVFrame *frame, int ch_index,
*
outbuffer
++
=
alac
->
output_samples_buffer
[
ch
][
i
];
}}
break
;
case
20
:
{
for
(
ch
=
0
;
ch
<
channels
;
ch
++
)
{
for
(
i
=
0
;
i
<
alac
->
nb_samples
;
i
++
)
alac
->
output_samples_buffer
[
ch
][
i
]
<<=
12
;
}}
break
;
case
24
:
{
for
(
ch
=
0
;
ch
<
channels
;
ch
++
)
{
for
(
i
=
0
;
i
<
alac
->
nb_samples
;
i
++
)
...
...
@@ -556,6 +562,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx)
switch
(
alac
->
sample_size
)
{
case
16
:
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_S16P
;
break
;
case
20
:
case
24
:
case
32
:
avctx
->
sample_fmt
=
AV_SAMPLE_FMT_S32P
;
break
;
...
...
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