diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-05 00:56:48 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-05 00:56:48 +0000 |
| commit | ba5a89098782cc61563841fbd5976c98b141ad54 (patch) | |
| tree | 2ef7d2efb58bd72a29d9f3e11dccd5ce3f78e6d4 /src/lib/video_decoder.cc | |
| parent | f7642b4e1384156e3ce4f689474331ea7b958cbb (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.cc | 3 |
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 |
