Commit 25e4d058 authored by Adrien Béraud's avatar Adrien Béraud

videomanager: add method to retrieve frame from AVFrame

Change-Id: Ia57ede3cfb3c5ec5b00948c448972ef1f9951f37
parent df6abf27
......@@ -91,6 +91,10 @@ public:
// Reset internal buffers (return to an empty MediaFrame)
virtual void reset() noexcept;
std::unique_ptr<AVFrame, void(*)(AVFrame*)> getFrame() {
return std::move(frame_);
}
protected:
std::unique_ptr<AVFrame, void(*)(AVFrame*)> frame_;
std::unique_ptr<AVPacket, void(*)(AVPacket*)> packet_;
......
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