diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-02-05 21:14:39 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-02-06 08:00:31 +0100 |
commit | 3cc0353f8d4eaa4862450bbe517e7fcf8be4f2bd (patch) | |
tree | ea7f7e293dc502d509ba6de5902a92b7fc6ce6a2 /libavcodec/v210dec.c | |
parent | 986c1c483befa717ee20710e21f5a5c014666c6e (diff) | |
download | ffmpeg-3cc0353f8d4eaa4862450bbe517e7fcf8be4f2bd.tar.gz |
v210dec: check for coded_frame allocation failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
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 37b4a3c423..d464572f78 100644 --- a/libavcodec/v210dec.c +++ b/libavcodec/v210dec.c @@ -34,6 +34,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); return 0; } |