|
|
@@ -783,7 +783,7 @@ av_cold int avcodec_close(AVCodecContext *avctx) |
|
|
avctx->codec->close(avctx); |
|
|
avctx->codec->close(avctx); |
|
|
avcodec_default_free_buffers(avctx); |
|
|
avcodec_default_free_buffers(avctx); |
|
|
avctx->coded_frame = NULL; |
|
|
avctx->coded_frame = NULL; |
|
|
if (avctx->codec->priv_class) |
|
|
|
|
|
|
|
|
if (avctx->codec && avctx->codec->priv_class) |
|
|
av_opt_free(avctx->priv_data); |
|
|
av_opt_free(avctx->priv_data); |
|
|
av_opt_free(avctx); |
|
|
av_opt_free(avctx); |
|
|
av_freep(&avctx->priv_data); |
|
|
av_freep(&avctx->priv_data); |
|
|
|