diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-11 21:33:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-30 23:31:08 +0100 |
| commit | 444763dc3293f06bb4f956ebfa2991f94761103b (patch) | |
| tree | 9ba805d3b4099556bd65106900cb08012d7e367b | |
| parent | dfa56e8031ee4545f9f06be2fceae7fb2838b642 (diff) | |
Cleanup: replace short variable name.
| -rw-r--r-- | src/lib/ffmpeg_encoder.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ffmpeg_encoder.cc b/src/lib/ffmpeg_encoder.cc index 001645af3..9816ddec8 100644 --- a/src/lib/ffmpeg_encoder.cc +++ b/src/lib/ffmpeg_encoder.cc @@ -178,9 +178,9 @@ FFmpegEncoder::go () std::vector<float> interleaved(_output_audio_channels * audio_frames); auto deinterleaved = make_shared<AudioBuffers>(_output_audio_channels, audio_frames); int const gets_per_frame = _film->three_d() ? 2 : 1; - for (DCPTime i; i < _film->length(); i += video_frame) { + for (DCPTime time; time < _film->length(); time += video_frame) { - if (file_encoders.size() > 1 && !reel->contains(i)) { + if (file_encoders.size() > 1 && !reel->contains(time)) { /* Next reel and file */ ++reel; ++encoder; @@ -208,12 +208,12 @@ FFmpegEncoder::go () { boost::mutex::scoped_lock lm (_mutex); - _last_time = i; + _last_time = time; } auto job = _job.lock (); if (job) { - job->set_progress (float(i.get()) / _film->length().get()); + job->set_progress(float(time.get()) / _film->length().get()); } waker.nudge (); |
