[FFmpeg-cvslog] avcodec/proresenc_anatoliy: Check av_frame_alloc() return code
Michael Niedermayer
git at videolan.org
Tue Jun 2 15:26:19 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jun 2 15:18:23 2015 +0200| [b70582e92f034eb17d157fb2ca102a61b0fa66ee] | committer: Michael Niedermayer
avcodec/proresenc_anatoliy: Check av_frame_alloc() return code
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b70582e92f034eb17d157fb2ca102a61b0fa66ee
---
libavcodec/proresenc_anatoliy.c | 2 ++
1 file changed, 2 insertions(+)
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;
More information about the ffmpeg-cvslog
mailing list