projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7642b4
)
Assert in one case where memory usage can build up a lot.
author
Carl Hetherington
<cth@carlh.net>
Mon, 5 Jan 2015 00:56:48 +0000
(
00:56
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 5 Jan 2015 00:56:48 +0000
(
00:56
+0000)
src/lib/video_decoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/video_decoder.cc
b/src/lib/video_decoder.cc
index b861f49e5657ac90ad43be6be6b53454e10a72da..efcbb05ad3dbdca68a0683a6684636b333ce4aec 100644
(file)
--- 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