Commit cb023d9a authored by Justin Ruggles's avatar Justin Ruggles

adpcmenc: check for coded_frame allocation failure

parent ddf70db6
......@@ -135,7 +135,8 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx)
goto error;
}
avctx->coded_frame = avcodec_alloc_frame();
if (!(avctx->coded_frame = avcodec_alloc_frame()))
goto error;
return 0;
error:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment