diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-13 17:29:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-13 17:29:13 +0100 |
| commit | 46d4173180f54450e819a0edcdac0ea76b219fde (patch) | |
| tree | b016bd17be0390e77b2022d746e88950bdc59d59 /src/picture_asset.cc | |
| parent | 04a0f5faeedab4d28e551751d8f81582f415c552 (diff) | |
Continue with comparison even if lengths differ.
Diffstat (limited to 'src/picture_asset.cc')
| -rw-r--r-- | src/picture_asset.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/picture_asset.cc b/src/picture_asset.cc index 6be50b6d..74a3a55b 100644 --- a/src/picture_asset.cc +++ b/src/picture_asset.cc @@ -275,6 +275,10 @@ MonoPictureAsset::equals (shared_ptr<const Asset> 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<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); |
