MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / PtsToPcmFrame

Function PtsToPcmFrame

src/decoder/plugins/FfmpegDecoderPlugin.cxx:188–194  ·  view source on GitHub ↗

* Convert a non-negative stream-relative time stamp in * AVStream::time_base units to a PCM frame number. */

Source from the content-addressed store, hash-verified

186 * AVStream::time_base units to a PCM frame number.
187 */
188[[gnu::pure]]
189static uint64_t
190PtsToPcmFrame(uint64_t pts, const AVStream &stream,
191 const AVCodecContext &codec_context) noexcept
192{
193 return av_rescale_q(pts, stream.time_base, codec_context.time_base);
194}
195
196/**
197 * Invoke DecoderClient::SubmitAudio() with the contents of an

Callers 1

ffmpeg_send_packetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected