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
52aed193
Commit
52aed193
authored
Oct 22, 2013
by
Derek Buitenhuis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfiltergraph: Properly handle memory allocation failure
Signed-off-by:
Derek Buitenhuis
<
derek.buitenhuis@gmail.com
>
parent
6ef30976
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
avfiltergraph.c
libavfilter/avfiltergraph.c
+13
-0
No files found.
libavfilter/avfiltergraph.c
View file @
52aed193
...
...
@@ -392,6 +392,19 @@ static int can_merge_formats(AVFilterFormats *a_arg,
return
1
;
a
=
clone_filter_formats
(
a_arg
);
b
=
clone_filter_formats
(
b_arg
);
if
(
!
a
||
!
b
)
{
if
(
a
)
av_freep
(
&
a
->
formats
);
if
(
b
)
av_freep
(
&
b
->
formats
);
av_freep
(
&
a
);
av_freep
(
&
b
);
return
0
;
}
if
(
is_sample_rate
)
{
ret
=
ff_merge_samplerates
(
a
,
b
);
}
else
{
...
...
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