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:
7fccc96
)
huffyuv: Check memory allocation
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 31 May 2015 12:54:03 +0000
(14:54 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Sun, 31 May 2015 13:03:31 +0000
(15:03 +0200)
libavcodec/huffyuvenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/huffyuvenc.c
b/libavcodec/huffyuvenc.c
index
6b3ff76
..
175b256
100644
(file)
--- a/
libavcodec/huffyuvenc.c
+++ b/
libavcodec/huffyuvenc.c
@@
-155,7
+155,7
@@
static av_cold int encode_init(AVCodecContext *avctx)
s->version = 2;
avctx->coded_frame = av_frame_alloc();
- if (!avctx->coded_frame)
+ if (!avctx->
extradata || !avctx->stats_out || !avctx->
coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;