Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-01-29 00:27:35 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-01-29 01:08:21 +0400
commitf122cbf087d5f3af346a9c84e62123bbd3ded91e (patch)
tree3545a7767406ff8ac783d9ea945c88f2240f9a83 /libavcodec/v210x.c
parent7299e5d52bd17d86e9344ea24d58d256d4f4b6da (diff)
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;
}