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

Function FindPictureStream

src/decoder/plugins/FfmpegDecoderPlugin.cxx:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static const AVStream *
123FindPictureStream(const AVFormatContext &format_context) noexcept
124{
125 for (unsigned i = 0; i < format_context.nb_streams; ++i)
126 if (IsPicture(*format_context.streams[i]))
127 return format_context.streams[i];
128
129 return nullptr;
130}
131
132static const char *
133GetMimeType(const AVCodecDescriptor &codec) noexcept

Callers 1

FfmpegScanStreamFunction · 0.85

Calls 1

IsPictureFunction · 0.85

Tested by

no test coverage detected