diff options
| -rw-r--r-- | Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs b/Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs index 7676093f..66b1e6c1 100644 --- a/Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs +++ b/Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs @@ -106,6 +106,8 @@ namespace Ryujinx.Graphics.Nvdec.H264 public int DecodeFrame(Surface output, ReadOnlySpan<byte> bitstream) { + ffmpeg.av_frame_unref(output.Frame); + int result; int gotFrame; |
