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
4cd22b77
Commit
4cd22b77
authored
Jul 19, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alac: fix channel pointer assignment for 24 and 32-bit
Needs to be done separately for each element.
parent
eeb55f5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
alac.c
libavcodec/alac.c
+4
-4
No files found.
libavcodec/alac.c
View file @
4cd22b77
...
...
@@ -322,16 +322,16 @@ static int decode_element(AVCodecContext *avctx, void *data, int ch_index,
av_log
(
avctx
,
AV_LOG_ERROR
,
"get_buffer() failed
\n
"
);
return
ret
;
}
if
(
alac
->
sample_size
>
16
)
{
for
(
ch
=
0
;
ch
<
channels
;
ch
++
)
alac
->
output_samples_buffer
[
ch
]
=
(
int32_t
*
)
alac
->
frame
.
extended_data
[
ch_index
+
ch
];
}
}
else
if
(
output_samples
!=
alac
->
nb_samples
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"sample count mismatch: %u != %d
\n
"
,
output_samples
,
alac
->
nb_samples
);
return
AVERROR_INVALIDDATA
;
}
alac
->
nb_samples
=
output_samples
;
if
(
alac
->
sample_size
>
16
)
{
for
(
ch
=
0
;
ch
<
channels
;
ch
++
)
alac
->
output_samples_buffer
[
ch
]
=
(
int32_t
*
)
alac
->
frame
.
extended_data
[
ch_index
+
ch
];
}
if
(
is_compressed
)
{
int16_t
lpc_coefs
[
2
][
32
];
...
...
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