summaryrefslogtreecommitdiffstats
path: root/libavcodec/proresenc_anatoliy.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-02 15:18:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-02 15:18:23 +0200
commitb70582e92f034eb17d157fb2ca102a61b0fa66ee (patch)
tree9a395e7f0c1ecfe6bbd6ceb08e5c35a2fa8c64d2 /libavcodec/proresenc_anatoliy.c
parentea9daefe9329519f6dd810cb3b56288b1c71747c (diff)
downloadffmpeg-streaming-b70582e92f034eb17d157fb2ca102a61b0fa66ee.zip
ffmpeg-streaming-b70582e92f034eb17d157fb2ca102a61b0fa66ee.tar.gz
avcodec/proresenc_anatoliy: Check av_frame_alloc() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/proresenc_anatoliy.c')
-rw-r--r--libavcodec/proresenc_anatoliy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index cc98c66..25ffbc0 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -591,6 +591,8 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
}
avctx->coded_frame = av_frame_alloc();
+ if (!avctx->coded_frame)
+ return AVERROR(ENOMEM);
avctx->coded_frame->key_frame = 1;
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
OpenPOWER on IntegriCloud