Improve FFmpeg sync, in theory.
[dcpomatic.git] / src / lib / audio_decoder.cc
index 3964719104956a46e16f734fd8acaadcaa7b9df0..dc49a1846e74ada429e20603d213666d858ecd52 100644 (file)
@@ -33,7 +33,7 @@ using boost::shared_ptr;
 
 AudioDecoder::AudioDecoder (shared_ptr<const Film> f)
        : Decoder (f)
-       , _next_audio_frame (0)
+       , _audio_position (0)
 {
 }
 
@@ -71,5 +71,5 @@ void
 AudioDecoder::audio (shared_ptr<const AudioBuffers> data, AudioContent::Frame frame)
 {
        Audio (data, frame);
-       _next_audio_frame = frame + data->frames ();
+       _audio_position = frame + data->frames ();
 }