diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-01-28 20:25:59 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-28 22:08:21 +0100 |
commit | 70a8c796807e564b5248cbeebc1162f86f2e6137 (patch) | |
tree | d3525265220bc60be3ae0d1db70690ac66f11b13 /libavcodec/v210dec.c | |
parent | 3ab90687fdbafe46d0e92bc7402e1ce1c4d3e0a1 (diff) | |
download | ffmpeg-70a8c796807e564b5248cbeebc1162f86f2e6137.tar.gz |
v210dec: check return value of avcodec_alloc_frame()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/v210dec.c')
-rw-r--r-- | libavcodec/v210dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c index 1af7f943e1..1703ceebdd 100644 --- a/libavcodec/v210dec.c +++ b/libavcodec/v210dec.c @@ -58,6 +58,8 @@ static av_cold int decode_init(AVCodecContext *avctx) avctx->bits_per_raw_sample = 10; avctx->coded_frame = avcodec_alloc_frame(); + if (!avctx->coded_frame) + return AVERROR(ENOMEM); s->unpack_frame = v210_planar_unpack_c; |