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
971099ff
Commit
971099ff
authored
Dec 17, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacenc: correctly check returned value
CC: libav-stable@libav.org
parent
ac467d94
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
aacenc.c
libavcodec/aacenc.c
+4
-3
No files found.
libavcodec/aacenc.c
View file @
971099ff
...
@@ -750,10 +750,10 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
...
@@ -750,10 +750,10 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
s
->
chan_map
=
aac_chan_configs
[
s
->
channels
-
1
];
s
->
chan_map
=
aac_chan_configs
[
s
->
channels
-
1
];
if
(
ret
=
dsp_init
(
avctx
,
s
)
)
if
(
(
ret
=
dsp_init
(
avctx
,
s
))
<
0
)
goto
fail
;
goto
fail
;
if
(
ret
=
alloc_buffers
(
avctx
,
s
)
)
if
(
(
ret
=
alloc_buffers
(
avctx
,
s
))
<
0
)
goto
fail
;
goto
fail
;
avctx
->
extradata_size
=
5
;
avctx
->
extradata_size
=
5
;
...
@@ -765,7 +765,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
...
@@ -765,7 +765,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
lengths
[
1
]
=
ff_aac_num_swb_128
[
i
];
lengths
[
1
]
=
ff_aac_num_swb_128
[
i
];
for
(
i
=
0
;
i
<
s
->
chan_map
[
0
];
i
++
)
for
(
i
=
0
;
i
<
s
->
chan_map
[
0
];
i
++
)
grouping
[
i
]
=
s
->
chan_map
[
i
+
1
]
==
TYPE_CPE
;
grouping
[
i
]
=
s
->
chan_map
[
i
+
1
]
==
TYPE_CPE
;
if
(
ret
=
ff_psy_init
(
&
s
->
psy
,
avctx
,
2
,
sizes
,
lengths
,
s
->
chan_map
[
0
],
grouping
))
if
((
ret
=
ff_psy_init
(
&
s
->
psy
,
avctx
,
2
,
sizes
,
lengths
,
s
->
chan_map
[
0
],
grouping
))
<
0
)
goto
fail
;
goto
fail
;
s
->
psypp
=
ff_psy_preprocess_init
(
avctx
);
s
->
psypp
=
ff_psy_preprocess_init
(
avctx
);
s
->
coder
=
&
ff_aac_coders
[
2
];
s
->
coder
=
&
ff_aac_coders
[
2
];
...
...
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