return std::shared_ptr<AVFrame>(video.get(), [video, packet](AVFrame*){})