diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-26 16:35:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-26 16:35:43 +0100 |
| commit | d39bfb9a1360a83f3451b79d01fdc4f465ef21d3 (patch) | |
| tree | 64ea69741155d15d114ad96daf0f90e24b3abe28 /src/lib/audio_decoder.cc | |
| parent | 7cd29c67a1977d67fc63f58c1d29826d7993a750 (diff) | |
Improve FFmpeg sync, in theory.
Diffstat (limited to 'src/lib/audio_decoder.cc')
| -rw-r--r-- | src/lib/audio_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 396471910..dc49a1846 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -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 (); } |
