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:
9437259
)
yop: check return value of av_frame_alloc()
author
Paul B Mahol
<onemda@gmail.com>
Fri, 26 Jul 2013 13:51:26 +0000
(13:51 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Fri, 26 Jul 2013 13:51:26 +0000
(13:51 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/yop.c
patch
|
blob
|
history
diff --git
a/libavcodec/yop.c
b/libavcodec/yop.c
index
807e170
..
6315add
100644
(file)
--- a/
libavcodec/yop.c
+++ b/
libavcodec/yop.c
@@
-118,6
+118,8
@@
static av_cold int yop_decode_init(AVCodecContext *avctx)
}
s->frame = av_frame_alloc();
+ if (!s->frame)
+ return AVERROR(ENOMEM);
return 0;
}