diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-10-04 14:12:24 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-04 14:12:24 -0300 |
| commit | f7aaea430025ddb114a31712cb791ea5141e8d56 (patch) | |
| tree | db617dcc4084a9e6972586b03c3c4a5d134a85cb | |
| parent | d92fff541bf6fddadabf6ab628ddf8fec41cd52e (diff) | |
Unref frames before decoding with FFMPEG (#2704)
| -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; |
