MCPcopy Create free account
hub / github.com/IENT/YUView / loadFFmpegLibraryInPath

Method loadFFmpegLibraryInPath

YUViewLib/src/ffmpeg/FFmpegVersionHandler.cpp:513–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513bool FFmpegVersionHandler::loadFFmpegLibraryInPath(QString path)
514{
515 bool success = false;
516 for (auto version : SupportedLibraryVersionCombinations)
517 {
518 if (this->lib.loadFFmpegLibraryInPath(path, version))
519 {
520 this->log(QString("Checking versions avutil %1, swresample %2, avcodec %3, avformat %4")
521 .arg(version.avutil.major)
522 .arg(version.swresample.major)
523 .arg(version.avcodec.major)
524 .arg(version.avformat.major));
525
526 if ((success = checkVersionWithLib(this->lib, version, this->logList)))
527 {
528 this->libVersion = addMinorAndMicroVersion(this->lib, version);
529 this->log("checking the library versions was successful.");
530 break;
531 }
532 }
533 }
534
535 if (success && this->libVersion.avformat.major < 59)
536 this->lib.avformat.av_register_all();
537
538 return success;
539}
540
541bool FFmpegVersionHandler::loadFFMpegLibrarySpecific(QString avFormatLib,
542 QString avCodecLib,

Callers

nothing calls this directly

Calls 3

logMethod · 0.95
checkVersionWithLibFunction · 0.85
addMinorAndMicroVersionFunction · 0.85

Tested by

no test coverage detected