Message ID | 20220128020818.39850-2-lq@chinaffmpeg.org |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,1/2] avutil/tx: remove deadcode of the control flow | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
andriy/make_aarch64_jetson | success | Make finished |
andriy/make_fate_aarch64_jetson | success | Make fate finished |
andriy/make_armv7_RPi4 | success | Make finished |
andriy/make_fate_armv7_RPi4 | success | Make fate finished |
diff --git a/libavutil/tx.c b/libavutil/tx.c index 50616adba7..79c9477d7f 100644 --- a/libavutil/tx.c +++ b/libavutil/tx.c @@ -567,6 +567,10 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type, if (!s->sub) s->sub = sub = av_mallocz(TX_MAX_SUB*sizeof(*sub)); + if (!s->sub) { + ret = AVERROR(ENOMEM); + goto end; + } /* Attempt to initialize each */ for (int i = 0; i < nb_cd_matches; i++) {