mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
lavfi/deshake: fix crash in uninit()
Add NULL check on avctx before calling avcodec_close() on it. Fix trac ticket #1472.
This commit is contained in:
parent
f77fd34bc3
commit
1bb30d0295
@ -420,7 +420,8 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
avfilter_unref_buffer(deshake->ref);
|
||||
if (deshake->fp)
|
||||
fclose(deshake->fp);
|
||||
avcodec_close(deshake->avctx);
|
||||
if (deshake->avctx)
|
||||
avcodec_close(deshake->avctx);
|
||||
av_freep(&deshake->avctx);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user