Unified · Split
| @@ -286,6 +286,8 @@ static av_cold int tta_decode_init(AVCodecContext * avctx) · 285 unmodified lines | ||
| 286 | 286 | } |
| 287 | 287 | |
| 288 | 288 | s->decode_buffer = av_mallocz(sizeof(int32_t)*s->frame_length*s->channels); |
| 289 | + if (!s->decode_buffer) | |
| 290 | + return AVERROR(ENOMEM); | |
| 289 | 291 | s->ch_ctx = av_malloc(avctx->channels * sizeof(*s->ch_ctx)); |
| 290 | 292 | if (!s->ch_ctx) |
| 291 | 293 | return AVERROR(ENOMEM); |