if (_length != other._length) {
stringstream s;
- s << "lengths differ (" << _length << " cf " << other._length << ")";
note (ERROR, String::compose ("lengths differ (%1 vs %2)", _length, other._length));
- return false;
}
if (_reels.size() != other._reels.size()) {
assert (other_picture);
for (int i = 0; i < _intrinsic_duration; ++i) {
+ if (i >= other_picture->intrinsic_duration()) {
+ return false;
+ }
+
note (PROGRESS, "Comparing video frame " + lexical_cast<string> (i) + " of " + lexical_cast<string> (_intrinsic_duration));
shared_ptr<const MonoPictureFrame> frame_A = get_frame (i);
shared_ptr<const MonoPictureFrame> frame_B = other_picture->get_frame (i);