lavfi/subtitles: 10l close codec before format.
Fix invalid memory accesses.
This commit is contained in:
@@ -332,10 +332,10 @@ static av_cold int init_subtitles(AVFilterContext *ctx, const char *args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (fmt)
|
|
||||||
avformat_close_input(&fmt);
|
|
||||||
if (dec_ctx)
|
if (dec_ctx)
|
||||||
avcodec_close(dec_ctx);
|
avcodec_close(dec_ctx);
|
||||||
|
if (fmt)
|
||||||
|
avformat_close_input(&fmt);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user