From 23eaac9ced368f2a172b4fea6aa2986174e5bae2 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 20 Nov 2021 23:15:04 -0500 Subject: [PATCH] [ffmpeg] free up frame buffers when seeding #2355 --- src/media/ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/media/ffmpeg.c b/src/media/ffmpeg.c index 1a789bb47..063fdee60 100644 --- a/src/media/ffmpeg.c +++ b/src/media/ffmpeg.c @@ -651,6 +651,7 @@ int ffmpeg_blit(ncvisual* ncv, int rows, int cols, ncplane* n, } void ffmpeg_details_seed(ncvisual* ncv){ + av_frame_unref(ncv->details->frame); memset(ncv->details->frame, 0, sizeof(*ncv->details->frame)); ncv->details->frame->linesize[0] = ncv->rowstride; ncv->details->frame->width = ncv->pixx;