mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
media_utils: fix segfault when stopping a recording
This commit is contained in:
parent
17aeefe1b0
commit
f7fa5aab70
3 changed files with 4 additions and 19 deletions
|
|
@ -371,7 +371,6 @@ public:
|
|||
}
|
||||
if (ctx)
|
||||
{
|
||||
avcodec_close(ctx);
|
||||
avcodec_free_context(&ctx);
|
||||
}
|
||||
if (io_buf)
|
||||
|
|
@ -382,7 +381,6 @@ public:
|
|||
{
|
||||
if (fmt->pb) av_freep(&fmt->pb);
|
||||
avformat_close_input(&fmt);
|
||||
avformat_free_context(fmt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -280,7 +280,6 @@ struct vdec_context final
|
|||
|
||||
~vdec_context()
|
||||
{
|
||||
avcodec_close(ctx);
|
||||
avcodec_free_context(&ctx);
|
||||
sws_freeContext(sws);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue