Commit 054a7557 authored by Max Kellermann's avatar Max Kellermann

lib/ffmpeg/Frame: add av_frame_unref() wrapper

parent 977a4570
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment