OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
048cc80
)
ffmpeg: raise ENOMEM on avfilter_graph_alloc() failure.
author
Clément Bœsch
<ubitux@gmail.com>
Mon, 13 Feb 2012 22:21:50 +0000
(23:21 +0100)
committer
Clément Bœsch
<ubitux@gmail.com>
Mon, 13 Feb 2012 22:32:35 +0000
(23:32 +0100)
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
d1851e1
..
03bcccd
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-620,6
+620,8
@@
static int configure_video_filters(InputStream *ist, OutputStream *ost)
int ret;
ost->graph = avfilter_graph_alloc();
+ if (!ost->graph)
+ return AVERROR(ENOMEM);
if (ist->st->sample_aspect_ratio.num) {
sample_aspect_ratio = ist->st->sample_aspect_ratio;