You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
decimate: check for avctx ptr before closing.
Fixes a crash init failed before setting avctx.
This commit is contained in:
@@ -148,9 +148,11 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
{
|
||||
DecimateContext *decimate = ctx->priv;
|
||||
av_frame_free(&decimate->ref);
|
||||
if (decimate->avctx) {
|
||||
avcodec_close(decimate->avctx);
|
||||
av_freep(&decimate->avctx);
|
||||
}
|
||||
}
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
|
Reference in New Issue
Block a user