Determine if codec name is valid
| 602 | |
| 603 | /// Determine if codec name is valid |
| 604 | bool 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 |
| 613 | void FFmpegWriter::PrepareStreams() { |
nothing calls this directly
no outgoing calls
no test coverage detected