Assert in one case where memory usage can build up a lot.
authorCarl Hetherington <cth@carlh.net>
Mon, 5 Jan 2015 00:56:48 +0000 (00:56 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 5 Jan 2015 00:56:48 +0000 (00:56 +0000)
src/lib/video_decoder.cc

index b861f49e5657ac90ad43be6be6b53454e10a72da..efcbb05ad3dbdca68a0683a6684636b333ce4aec 100644 (file)
@@ -289,6 +289,9 @@ 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 */
+       DCPOMATIC_ASSERT (_decoded_video.size() < 32);
 }
 
 void