From 054a7557fa71ddf5e496e3ef921c3a1aa606d81b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 24 Mar 2019 22:21:35 +0100 Subject: [PATCH] lib/ffmpeg/Frame: add av_frame_unref() wrapper --- src/lib/ffmpeg/Frame.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/ffmpeg/Frame.hxx b/src/lib/ffmpeg/Frame.hxx index 986886710..5f160a14a 100644 --- a/src/lib/ffmpeg/Frame.hxx +++ b/src/lib/ffmpeg/Frame.hxx @@ -58,6 +58,10 @@ public: return frame; } + void Unref() noexcept { + av_frame_unref(frame); + } + void GetBuffer() { int err = av_frame_get_buffer(frame, 0); if (err < 0)