1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

lavu/tx: reset subcontext pointer if initialization fails

Thanks to mkver for pointing this out.
This commit is contained in:
Lynne 2022-01-29 00:52:53 +01:00
parent 95f02e43e1
commit 265731f201
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -606,7 +606,7 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
break;
}
av_free(sub);
av_freep(&s->sub);
end:
av_free(cd_matches);