From e11276a822289d7d7d91a4f431f386ad28ef16dd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Nov 2016 14:54:31 +0000 Subject: Various work on the audio code. --- src/lib/ffmpeg_decoder.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/ffmpeg_decoder.cc') diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 32903a20e..57fe55892 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -405,6 +405,8 @@ FFmpegDecoder::decode_audio_packet () LOG_WARNING ("Crazy timestamp %1", to_string (ct)); } + audio->set_position (*stream, ct); + /* Give this data provided there is some, and its time is sane */ if (ct >= ContentTime() && data->frames() > 0) { audio->emit (*stream, data, ct); -- cgit v1.2.3