adpcmenc: check for coded_frame allocation failure
This commit is contained in:
parent
ddf70db6d7
commit
cb023d9afe
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue