Increase stored-frames limit; fix skip_frame_test reference.
[dcpomatic.git] / src / lib / video_decoder.cc
index b861f49e5657ac90ad43be6be6b53454e10a72da..1bb460da357c2b28c21b3eac7f21c8d93450702b 100644 (file)
@@ -289,6 +289,11 @@ VideoDecoder::video (shared_ptr<const ImageProxy> image, VideoFrame frame)
        }
 
        copy (to_push.begin(), to_push.end(), back_inserter (_decoded_video));
+
+       /* We can't let this build up too much or we will run out of memory.  We need to allow
+          the most frames that can exist between blocks of sound in a multiplexed file.
+       */
+       DCPOMATIC_ASSERT (_decoded_video.size() <= 96);
 }
 
 void