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
ac3f5a68
Commit
ac3f5a68
authored
Mar 27, 2012
by
Thilo Borgmann
Committed by
Justin Ruggles
Sep 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alsdec: check return values.
Signed-off-by:
Justin Ruggles
<
justin.ruggles@gmail.com
>
parent
66197988
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
alsdec.c
libavcodec/alsdec.c
+7
-5
No files found.
libavcodec/alsdec.c
View file @
ac3f5a68
...
...
@@ -1348,7 +1348,7 @@ static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
}
}
else
{
// multi-channel coding
ALSBlockData
bd
=
{
0
};
int
b
;
int
b
,
ret
;
int
*
reverted_channels
=
ctx
->
reverted_channels
;
unsigned
int
offset
=
0
;
...
...
@@ -1381,9 +1381,10 @@ static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
bd
.
raw_samples
=
ctx
->
raw_samples
[
c
]
+
offset
;
bd
.
raw_other
=
NULL
;
read_block
(
ctx
,
&
bd
);
if
(
read_channel_data
(
ctx
,
ctx
->
chan_data
[
c
],
c
))
return
-
1
;
if
((
ret
=
read_block
(
ctx
,
&
bd
))
<
0
)
return
ret
;
if
((
ret
=
read_channel_data
(
ctx
,
ctx
->
chan_data
[
c
],
c
))
<
0
)
return
ret
;
}
for
(
c
=
0
;
c
<
avctx
->
channels
;
c
++
)
...
...
@@ -1402,7 +1403,8 @@ static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
bd
.
lpc_cof
=
ctx
->
lpc_cof
[
c
];
bd
.
quant_cof
=
ctx
->
quant_cof
[
c
];
bd
.
raw_samples
=
ctx
->
raw_samples
[
c
]
+
offset
;
decode_block
(
ctx
,
&
bd
);
if
((
ret
=
decode_block
(
ctx
,
&
bd
))
<
0
)
return
ret
;
}
memset
(
reverted_channels
,
0
,
avctx
->
channels
*
sizeof
(
*
reverted_channels
));
...
...
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