You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec: Free the default avoptions on init failure
This commit is contained in:
@@ -1292,6 +1292,10 @@ free_and_end:
|
|||||||
(avctx->codec->caps_internal & FF_CODEC_CAP_INIT_CLEANUP))
|
(avctx->codec->caps_internal & FF_CODEC_CAP_INIT_CLEANUP))
|
||||||
avctx->codec->close(avctx);
|
avctx->codec->close(avctx);
|
||||||
|
|
||||||
|
if (avctx->priv_data && avctx->codec && avctx->codec->priv_class)
|
||||||
|
av_opt_free(avctx->priv_data);
|
||||||
|
av_opt_free(avctx);
|
||||||
|
|
||||||
av_dict_free(&tmp);
|
av_dict_free(&tmp);
|
||||||
av_freep(&avctx->priv_data);
|
av_freep(&avctx->priv_data);
|
||||||
if (avctx->internal) {
|
if (avctx->internal) {
|
||||||
|
Reference in New Issue
Block a user