Unref frames before decoding with FFMPEG (#2704)

This commit is contained in:
gdkchan 2021-10-04 14:12:24 -03:00 committed by GitHub
parent d92fff541b
commit f7aaea4300
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;