MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / FindCodecId

Function FindCodecId

decoder/LAVVideo/Media.cpp:687–697  ·  view source on GitHub ↗

Crawl the lavc_video_codecs array for the proper codec

Source from the content-addressed store, hash-verified

685
686// Crawl the lavc_video_codecs array for the proper codec
687AVCodecID FindCodecId(const CMediaType *mt)
688{
689 for (int i = 0; i < countof(lavc_video_codecs); ++i)
690 {
691 if (mt->subtype == *lavc_video_codecs[i].clsMinorType)
692 {
693 return lavc_video_codecs[i].nFFCodec;
694 }
695 }
696 return AV_CODEC_ID_NONE;
697}
698
699// Strings will be filled in eventually.
700// AV_CODEC_ID_NONE means there is some special handling going on.

Callers 1

CreateDecoderMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected