diff options
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/OpusDecoderPlugin.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decoder/OpusDecoderPlugin.cxx b/src/decoder/OpusDecoderPlugin.cxx index b010de49e..2f4f3df5b 100644 --- a/src/decoder/OpusDecoderPlugin.cxx +++ b/src/decoder/OpusDecoderPlugin.cxx @@ -314,6 +314,11 @@ MPDOpusDecoder::HandleAudio(const ogg_packet &packet) 0); if (cmd != DecoderCommand::NONE) return cmd; + + if (packet.granulepos > 0) + decoder_timestamp(decoder, + double(packet.granulepos) + / opus_sample_rate); } return DecoderCommand::NONE; |