Skip to content

Commit

Permalink
Игнорируем ffdshow Video Codec x64, потому что он падает после смены …
Browse files Browse the repository at this point in the history
…компилятора для VirtualDub2 с Visual Studio 2008 (см. About билда 44282) на Visual Studio 2019.

Проблема появилась сразу после commit 6b6e93d.
  • Loading branch information
v0lt committed Apr 15, 2024
1 parent 357acf1 commit ee06796
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/VirtualDub/source/compchoose.cpp
Expand Up @@ -531,10 +531,20 @@ void VDUIDialogChooseVideoCompressorW32::EnumerateCodecs() {
swprintf(buf, 64, L"A video codec with FOURCC '%.4S'", (const char *)&info.fccHandler);
VDExternalCodeBracket bracket(buf, __FILE__, __LINE__);

if (isEqualFOURCC(info.fccHandler, '1VSA'))
if (isEqualFOURCC(info.fccHandler, MAKEFOURCC('A','S','V','1'))) {
plugin.hic = ICOpenASV1(info.fccType, info.fccHandler, ICMODE_COMPRESS);
else
}
#ifdef _M_AMD64
else if (info.fccHandler == MAKEFOURCC('f','f','d','s')) {
// ffdshow Video Codec x64 crashes after changing the compiler
// for VirtualDub2 from VS 2008 to VS 2019
// TODO: patches welcome
plugin.hic = 0;
}
#endif
else {
plugin.hic = ICOpen(info.fccType, info.fccHandler, ICMODE_COMPRESS);
}
}

if (plugin.hic) {
Expand Down

0 comments on commit ee06796

Please sign in to comment.