1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

adpcmenc: check for coded_frame allocation failure

This commit is contained in:
Justin Ruggles 2012-01-30 13:03:01 -05:00
parent ddf70db6d7
commit cb023d9afe

View File

@ -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: