lib/ffmpeg/Frame: add av_frame_unref() wrapper

This commit is contained in:
Max Kellermann 2019-03-24 22:21:35 +01:00
parent 977a4570d9
commit 054a7557fa
1 changed files with 4 additions and 0 deletions

View File

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