diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-22 01:15:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-22 01:15:45 +0100 |
| commit | c5fe4e83db7a6fa7263e0d67804fd5a5569bf00a (patch) | |
| tree | 5fb69429e2524c7dbae3e97f462c2f9d8fc10d07 /src/tools/dcpomatic_server_cli.cc | |
| parent | a8a0dfd1b21de6c0facf965ab119833ff6f790bf (diff) | |
Optimization for the referenced video case.
With referenced video from a DCP decoder, no video will ever
be fetched from the decoder. Hence the code to discard given video
will be activated after _decoded builds up to the magic size.
Before this commit the code would attempt to fill with black up to
given frame N (with N very large) from the last frame in _decoded when
_decoded had been trimmed. This would result in exponential growth
in execution time for the VideoDecoder::give() path.
Diffstat (limited to 'src/tools/dcpomatic_server_cli.cc')
0 files changed, 0 insertions, 0 deletions
