Improve FFmpeg sync, in theory.
[dcpomatic.git] / src / lib / sndfile_decoder.cc
index 9030021e7c672d551eb309c788c4b4d9f7a7299a..80a6afd2baf79eae384164a310119a127e21c5bf 100644 (file)
@@ -115,5 +115,5 @@ SndfileDecoder::audio_frame_rate () const
 bool
 SndfileDecoder::done () const
 {
-       return _next_audio_frame > _sndfile_content->audio_length ();
+       return _audio_position >= _sndfile_content->audio_length ();
 }