]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/adxenc.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / adxenc.c
index b029e2eb781697d5e020fa3ddadc32608ae2537f..c6e46565f6caec0eabb5f3a638f9d3d219e7b66e 100644 (file)
@@ -120,6 +120,8 @@ static av_cold int adx_encode_init(AVCodecContext *avctx)
     avctx->frame_size = BLOCK_SAMPLES;
 
     avctx->coded_frame = avcodec_alloc_frame();
+    if (!avctx->coded_frame)
+        return AVERROR(ENOMEM);
 
     /* the cutoff can be adjusted, but this seems to work pretty well */
     c->cutoff = 500;