Unified · Split
| @@ -31,6 +31,8 @@ static av_cold int decode_init(AVCodecContext *avctx) · 30 unmodified lines | ||
| 31 | 31 | avctx->bits_per_raw_sample= 10; |
| 32 | 32 | |
| 33 | 33 | avctx->coded_frame= avcodec_alloc_frame(); |
| 34 | + if (!avctx->coded_frame) | |
| 35 | + return AVERROR(ENOMEM); | |
| 34 | 36 | |
| 35 | 37 | return 0; |
| 36 | 38 | } |