aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/v210x.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-01-28 20:27:35 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-01-28 22:08:21 +0100
commitf122cbf087d5f3af346a9c84e62123bbd3ded91e (patch)
tree3545a7767406ff8ac783d9ea945c88f2240f9a83 /libavcodec/v210x.c
parent7299e5d52bd17d86e9344ea24d58d256d4f4b6da (diff)
downloadffmpeg-f122cbf087d5f3af346a9c84e62123bbd3ded91e.tar.gz
v210x: check for 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/v210x.c')
-rw-r--r--libavcodec/v210x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/v210x.c b/libavcodec/v210x.c
index ec74a3384f..1435249e04 100644
--- a/libavcodec/v210x.c
+++ b/libavcodec/v210x.c
@@ -31,6 +31,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;
}