Whoops; check correct video frame. read2
authorCarl Hetherington <cth@carlh.net>
Tue, 31 Jul 2012 11:57:44 +0000 (12:57 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 31 Jul 2012 11:57:44 +0000 (12:57 +0100)
src/picture_asset.cc

index abf9fcd97e3103ad75cf27c0f517f71845c2e00e..d94561948f897fc34e258816e68681a7072a1d86 100644 (file)
@@ -200,11 +200,11 @@ PictureAsset::equals (shared_ptr<const Asset> other, EqualityFlags flags) const
                ASDCP::JP2K::FrameBuffer buffer_B (4 * Kumu::Megabyte);
 
                for (int i = 0; i < _length; ++i) {
-                       if (ASDCP_FAILURE (reader_A.ReadFrame (0, buffer_A))) {
+                       if (ASDCP_FAILURE (reader_A.ReadFrame (i, buffer_A))) {
                                throw DCPReadError ("could not read video frame");
                        }
 
-                       if (ASDCP_FAILURE (reader_B.ReadFrame (0, buffer_B))) {
+                       if (ASDCP_FAILURE (reader_B.ReadFrame (i, buffer_B))) {
                                throw DCPReadError ("could not read video frame");
                        }