diff options
Diffstat (limited to 'src/lib/video_decoder.cc')
| -rw-r--r-- | src/lib/video_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index fd8238441..a24059da2 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -79,7 +79,7 @@ VideoDecoder::set_progress (Job* j) const { assert (j); - if (_film->video_length()) { - j->set_progress (float (_video_frame) / _film->video_length()); + if (_film->length()) { + j->set_progress (float (_video_frame) / _film->time_to_video_frames (_film->length())); } } |
