MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / IsValidCodec

Method IsValidCodec

src/FFmpegWriter.cpp:604–610  ·  view source on GitHub ↗

Determine if codec name is valid

Source from the content-addressed store, hash-verified

602
603/// Determine if codec name is valid
604bool FFmpegWriter::IsValidCodec(std::string codec_name) {
605 // Initialize FFMpeg, and register all formats and codecs
606 AV_REGISTER_ALL
607
608 // Find the codec (if any)
609 return avcodec_find_encoder_by_name(codec_name.c_str()) != NULL;
610}
611
612// Prepare & initialize streams and open codecs
613void FFmpegWriter::PrepareStreams() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected