projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddf70db
)
adpcmenc: check for coded_frame allocation failure
author
Justin Ruggles
<justin.ruggles@gmail.com>
Mon, 30 Jan 2012 18:03:01 +0000
(13:03 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Tue, 31 Jan 2012 00:12:55 +0000
(19:12 -0500)
libavcodec/adpcmenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/adpcmenc.c
b/libavcodec/adpcmenc.c
index
9cf1e39
..
26d673d
100644
(file)
--- a/
libavcodec/adpcmenc.c
+++ b/
libavcodec/adpcmenc.c
@@
-135,7
+135,8
@@
static av_cold int adpcm_encode_init(AVCodecContext *avctx)
goto error;
}
- avctx->coded_frame = avcodec_alloc_frame();
+ if (!(avctx->coded_frame = avcodec_alloc_frame()))
+ goto error;
return 0;
error: