diff options
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 |
