mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
AVIDump[regression]: close avio handles
This commit is contained in:
@ -323,7 +323,13 @@ void AVIDump::CloseVideoFile()
|
|||||||
av_frame_free(&s_scaled_frame);
|
av_frame_free(&s_scaled_frame);
|
||||||
|
|
||||||
avcodec_free_context(&s_codec_context);
|
avcodec_free_context(&s_codec_context);
|
||||||
|
|
||||||
|
if (s_format_context)
|
||||||
|
{
|
||||||
|
avio_closep(&s_format_context->pb);
|
||||||
|
}
|
||||||
avformat_free_context(s_format_context);
|
avformat_free_context(s_format_context);
|
||||||
|
s_format_context = nullptr;
|
||||||
|
|
||||||
if (s_sws_context)
|
if (s_sws_context)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user