Hi all,

as the GZIP mode of the CamStudio Codec was somehow broken, I decided to look into it.

The issue was (or so it seems to me) that the allocated internal compression buffer size ("destlen") was too small. I think it could have been even zero. Setting the buffer manually to arbitrarily selected 4 MB (4194304) made the codec work for me.

While I was at it, I updated zlib to v.1.2.8 and compiled it in VS2015 with SSE2 and AVX support. I didn't check whether the compiler actually created those instructions but at least the compiler was allowed to use them.

As I didn't find the sources for v1.5, this is based on the sources of codec v1.4 and is aptly named v1.401.

You can test this version here, I chose hosters with long file expiration:

https://piecejointe.net/?ii297ctwbv

http://www.xup.in/dl,17140929/CamStudioCodec-1.401.zip/

https://filetea.me/t1sQgYHQat6RJSL1a9xlajHOw

MD5 checksum for the ZIP should be: 9029b516c1d8be53a0d6221791e2bfc9

I hope I didn't break things. Especially, GZIP should be working now.
Should everything work as expected, I will of course also distribute the modified source.

But the main question I have is the following: After a small modification (INT_PTR instead of BOOL for WinAPI dialog handling), the source also compiled fine for x64. However, I had no success to get the codec installed. I tried several regsvr32 and setupapi.dll,InstallHinfSection methods and also tried to modify the INF file but it didn't work. Either I got error messages or just nothing showed up in the VirtualDub64 compression dialog.

Is compiling for x64 not enough to make it work?

Best regards
pwo