MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / is_supported

Method is_supported

framework/codec/avcodecDecoder.cpp:204–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203
204 bool avcodecDecoder::is_supported(enum AFCodecID codec)
205 {
206// return codec == AF_CODEC_ID_H264
207// || codec == AF_CODEC_ID_MPEG4
208// || codec == AF_CODEC_ID_HEVC
209// || codec == AF_CODEC_ID_AAC
210// || codec == AF_CODEC_ID_MP1
211// || codec == AF_CODEC_ID_MP2
212// || codec == AF_CODEC_ID_MP3
213// || codec == AF_CODEC_ID_PCM_S16LE;
214 if (avcodec_find_decoder(CodecID2AVCodecID(codec))) {
215 return true;
216 }
217
218 return false;
219 }
220
221 void avcodecDecoder::flush_decoder()
222 {

Callers 1

createMethod · 0.45

Calls 1

CodecID2AVCodecIDFunction · 0.85

Tested by

no test coverage detected