summaryrefslogtreecommitdiff
path: root/src/lib/encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-20 07:52:16 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-20 07:52:16 +0000
commit4a6799c9d1666aa7db3a67d92bd3e31f16597e13 (patch)
tree9eb29697235393f5e3da9d6db85033449449d3c4 /src/lib/encoder.cc
parentf832ef7f9e6fea43211bcfc28b10bb5b4681703d (diff)
Only use last real frame if it exists.
Diffstat (limited to 'src/lib/encoder.cc')
-rw-r--r--src/lib/encoder.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc
index 16bf62408..07ce8f3bc 100644
--- a/src/lib/encoder.cc
+++ b/src/lib/encoder.cc
@@ -304,9 +304,8 @@ Encoder::process_video (shared_ptr<Image> image, bool same, boost::shared_ptr<Su
return;
}
- if (same) {
+ if (same && _last_real_frame) {
/* Use the last frame that we encoded */
- assert (_last_real_frame);
link (_opt->frame_out_path (_last_real_frame.get(), false), _opt->frame_out_path (_video_frame, false));
link (_opt->hash_out_path (_last_real_frame.get(), false), _opt->hash_out_path (_video_frame, false));
} else {