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
7ea948ba
Commit
7ea948ba
authored
Mar 27, 2012
by
Thilo Borgmann
Committed by
Michael Niedermayer
Mar 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alsdec: check return values.
parent
28a613b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
alsdec.c
libavcodec/alsdec.c
+3
-3
No files found.
libavcodec/alsdec.c
View file @
7ea948ba
...
...
@@ -1381,8 +1381,7 @@ 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
))
if
(
read_block
(
ctx
,
&
bd
)
||
read_channel_data
(
ctx
,
ctx
->
chan_data
[
c
],
c
))
return
-
1
;
}
...
...
@@ -1402,7 +1401,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
(
decode_block
(
ctx
,
&
bd
))
return
-
1
;
}
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