mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-28 10:00:50 +01:00
Unref frames before decoding with FFMPEG (#2704)
This commit is contained in:
parent
d92fff541b
commit
f7aaea4300
@ -106,6 +106,8 @@ namespace Ryujinx.Graphics.Nvdec.H264
|
|||||||
|
|
||||||
public int DecodeFrame(Surface output, ReadOnlySpan<byte> bitstream)
|
public int DecodeFrame(Surface output, ReadOnlySpan<byte> bitstream)
|
||||||
{
|
{
|
||||||
|
ffmpeg.av_frame_unref(output.Frame);
|
||||||
|
|
||||||
int result;
|
int result;
|
||||||
int gotFrame;
|
int gotFrame;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user