mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
utils.c: fix crash with threading enabled.
This commit is contained in:
parent
8477f2deef
commit
ceff045dbe
1 changed files with 1 additions and 1 deletions
|
|
@ -783,7 +783,7 @@ av_cold int avcodec_close(AVCodecContext *avctx)
|
|||
avctx->codec->close(avctx);
|
||||
avcodec_default_free_buffers(avctx);
|
||||
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);
|
||||
av_freep(&avctx->priv_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue