\r
safe_ptr<basic_frame> basic_frame::fill_and_key(const safe_ptr<basic_frame>& fill, const safe_ptr<basic_frame>& key)\r
{\r
- if(fill == basic_frame::empty() && key == basic_frame::empty())\r
+ if(fill == basic_frame::empty() || key == basic_frame::empty())\r
return basic_frame::empty();\r
\r
- if(fill == basic_frame::eof() && key == basic_frame::eof())\r
+ if(fill == basic_frame::eof() || key == basic_frame::eof())\r
return basic_frame::eof();\r
\r
- if(key == basic_frame::empty() || key == basic_frame::eof())\r
- return fill;\r
-\r
std::vector<safe_ptr<basic_frame>> frames;\r
key->get_image_transform().set_is_key(true);\r
frames.push_back(key);\r
auto frame = basic_frame::fill_and_key(fill_, key_);\r
\r
fill_ = basic_frame::late();\r
- key_ = basic_frame::late();\r
+ key_ = basic_frame::late();\r
\r
return last_frame_ = frame;\r
}\r