diff options
Diffstat (limited to 'libavcodec/libvo-aacenc.c')
-rw-r--r-- | libavcodec/libvo-aacenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libvo-aacenc.c b/libavcodec/libvo-aacenc.c index 25e8a317f7..bb6d50f2f5 100644 --- a/libavcodec/libvo-aacenc.c +++ b/libavcodec/libvo-aacenc.c @@ -39,6 +39,8 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) int index; avctx->coded_frame = avcodec_alloc_frame(); + if (!avctx->coded_frame) + return AVERROR(ENOMEM); avctx->frame_size = 1024; voGetAACEncAPI(&s->codec_api); |