summaryrefslogtreecommitdiff
path: root/src/lib/encoder.cc
diff options
context:
space:
mode:
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 {