summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-05 00:56:48 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-05 00:56:48 +0000
commitba5a89098782cc61563841fbd5976c98b141ad54 (patch)
tree2ef7d2efb58bd72a29d9f3e11dccd5ce3f78e6d4 /src/lib/video_decoder.cc
parentf7642b4e1384156e3ce4f689474331ea7b958cbb (diff)
Assert in one case where memory usage can build up a lot.
Diffstat (limited to 'src/lib/video_decoder.cc')
-rw-r--r--src/lib/video_decoder.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc
index b861f49e5..efcbb05ad 100644
--- a/src/lib/video_decoder.cc
+++ b/src/lib/video_decoder.cc
@@ -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