Check return value.

Fixes CID #1109591, #1084350
Fix uninitialized class members.

Fixes CID #966364, #966344, #966315, #966315, #966347, #966319, #966314,
 #966313, #966280
Fix the /W4 C4245 warnings: signed/unsigned mismatch.
AppSettings: Move some backward compatibility code to UpdateSettings()
Apply AStyle.
Remove duplicated code.

Fixes CID #965941.
Avoid useless conversion to CStringA.

Fixes CID #1111768.
CVobFile: Avoid hiding methods without overriding them.

Fixes CID #965828 #965829.
Check some return values when it makes sense to do so.

Fixes CID #965877 #1111761 #1111762 #1111764.
Simplify string handling to avoid possible null dereference.

Fixes CID #1111767.
CDDAReader: Use _byteswap_ushort when possible.

Fixes CID #966012 #966205.
Document some switch cases that intentionally don't end with a break statement.

Fixes CID #966019 #966020.
Avoid a potential (though unlikely) memory leak.

Fixes CID #1111770.
Check that CAutoVectorPtr::Allocate succeeded before using the memory.

Fixes CID #965879 #1111760.
Always check IMediaSample::GetPointer return value.

Fixes CID #965883 #965884.
DVBSub/PGSSub: Add more error checking when parsing composition object.

Fixes CID #971508.
Initialize a variable.

Fixes CID #1111779.
Remove some dead code.

Fixes CID #965946.
VSFilter: Use the "secure" version of the string functions when possible.
Fix/silence some warnings (mostly C4244 and C4267 "possible loss of data").