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

Function FfmpegOpenInput

src/decoder/plugins/FfmpegDecoderPlugin.cxx:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52static AVDictionary *avformat_options = nullptr;
53
54static Ffmpeg::FormatContext
55FfmpegOpenInput(AVIOContext *pb,
56 const char *filename,
57 AVInputFormat *fmt)
58{
59 Ffmpeg::FormatContext context(pb);
60
61 AVDictionary *options = nullptr;
62 AtScopeExit(&options) { av_dict_free(&options); };
63 av_dict_copy(&options, avformat_options, 0);
64
65 context.OpenInput(filename, fmt, &options);
66
67 return context;
68}
69
70static bool
71ffmpeg_init(const ConfigBlock &block)

Callers 3

ffmpeg_decodeFunction · 0.85
ffmpeg_scan_streamFunction · 0.85
ffmpeg_uri_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected