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

Function start_time_fallback

src/decoder/plugins/FfmpegDecoderPlugin.cxx:162–166  ·  view source on GitHub ↗

* Accessor for AVStream::start_time that replaces AV_NOPTS_VALUE with * zero. We can't use AV_NOPTS_VALUE in calculations, and we simply * assume that the stream's start time is zero, which appears to be * the best way out of that situation. */

Source from the content-addressed store, hash-verified

160 * the best way out of that situation.
161 */
162static constexpr int64_t
163start_time_fallback(const AVStream &stream)
164{
165 return FfmpegTimestampFallback(stream.start_time, 0);
166}
167
168/**
169 * Convert AVPacket::pts to a stream-relative time stamp (still in

Callers 2

StreamRelativePtsFunction · 0.85
FfmpegDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected