From 46d4173180f54450e819a0edcdac0ea76b219fde Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 13 Jul 2013 17:29:13 +0100 Subject: Continue with comparison even if lengths differ. --- src/cpl.cc | 2 -- src/picture_asset.cc | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cpl.cc b/src/cpl.cc index 30995a61..f585cc08 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -305,9 +305,7 @@ CPL::equals (CPL const & other, EqualityOptions opt, boost::function other, EqualityOptions opt, bo 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 (i) + " of " + lexical_cast (_intrinsic_duration)); shared_ptr frame_A = get_frame (i); shared_ptr frame_B = other_picture->get_frame (i); -- cgit v1.2.3