Ver Fonte

Unref frames before decoding with FFMPEG (#2704)

gdkchan há 4 anos atrás
pai
commit
f7aaea4300
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      Ryujinx.Graphics.Nvdec.H264/FFmpegContext.cs

+ 2 - 0
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;