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
63cf54df
Commit
63cf54df
authored
Oct 09, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alacdec: cosmetics: use 'ch' instead of 'chan' to iterate channels
parent
01200f12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
alac.c
libavcodec/alac.c
+13
-13
No files found.
libavcodec/alac.c
View file @
63cf54df
...
...
@@ -534,11 +534,11 @@ static av_cold int alac_decode_close(AVCodecContext *avctx)
{
ALACContext
*
alac
=
avctx
->
priv_data
;
int
ch
an
;
for
(
ch
an
=
0
;
chan
<
alac
->
numchannels
;
chan
++
)
{
av_freep
(
&
alac
->
predicterror_buffer
[
ch
an
]);
av_freep
(
&
alac
->
outputsamples_buffer
[
ch
an
]);
av_freep
(
&
alac
->
extra_bits_buffer
[
ch
an
]);
int
ch
;
for
(
ch
=
0
;
ch
<
alac
->
numchannels
;
ch
++
)
{
av_freep
(
&
alac
->
predicterror_buffer
[
ch
]);
av_freep
(
&
alac
->
outputsamples_buffer
[
ch
]);
av_freep
(
&
alac
->
extra_bits_buffer
[
ch
]);
}
return
0
;
...
...
@@ -546,19 +546,19 @@ static av_cold int alac_decode_close(AVCodecContext *avctx)
static
int
allocate_buffers
(
ALACContext
*
alac
)
{
int
ch
an
;
for
(
ch
an
=
0
;
chan
<
alac
->
numchannels
;
chan
++
)
{
alac
->
predicterror_buffer
[
ch
an
]
=
int
ch
;
for
(
ch
=
0
;
ch
<
alac
->
numchannels
;
ch
++
)
{
alac
->
predicterror_buffer
[
ch
]
=
av_malloc
(
alac
->
setinfo_max_samples_per_frame
*
4
);
alac
->
outputsamples_buffer
[
ch
an
]
=
alac
->
outputsamples_buffer
[
ch
]
=
av_malloc
(
alac
->
setinfo_max_samples_per_frame
*
4
);
alac
->
extra_bits_buffer
[
ch
an
]
=
av_malloc
(
alac
->
setinfo_max_samples_per_frame
*
4
);
alac
->
extra_bits_buffer
[
ch
]
=
av_malloc
(
alac
->
setinfo_max_samples_per_frame
*
4
);
if
(
!
alac
->
predicterror_buffer
[
ch
an
]
||
!
alac
->
outputsamples_buffer
[
ch
an
]
||
!
alac
->
extra_bits_buffer
[
ch
an
])
{
if
(
!
alac
->
predicterror_buffer
[
ch
]
||
!
alac
->
outputsamples_buffer
[
ch
]
||
!
alac
->
extra_bits_buffer
[
ch
])
{
alac_decode_close
(
alac
->
avctx
);
return
AVERROR
(
ENOMEM
);
}
...
...
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