diff options
Diffstat (limited to 'src/lib/encoder.cc')
| -rw-r--r-- | src/lib/encoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index fbc5c3561..6a604ab51 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -166,6 +166,10 @@ Encoder::current_encoding_rate () const int Encoder::video_frames_enqueued () const { + if (!_last_player_video) { + return 0; + } + return _last_player_video->time().frames_floor (_film->video_frame_rate ()); } |
