| 511 | } |
| 512 | |
| 513 | bool 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 | |
| 541 | bool FFmpegVersionHandler::loadFFMpegLibrarySpecific(QString avFormatLib, |
| 542 | QString avCodecLib, |
nothing calls this directly
no test coverage detected