Skip to content

Commit

Permalink
Error on missing key
Browse files Browse the repository at this point in the history
  • Loading branch information
achalddave committed Nov 29, 2017
1 parent 9415719 commit 1cedac9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samplers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ end

function VideoSampler:get_sequence(video, offset)
local sequence = {}
assert(self.video_keys[video][offset] ~= nil,
string.format('Invalid offset %d for video %s', offset, video))
local sampled_key = self.video_keys[video][offset]
local last_valid_key = sampled_key
for _ = 1, self.sequence_length do
Expand Down

0 comments on commit 1cedac9

Please sign in to comment.