Parse DivX Pro versions, though this is less important now that we
use FFMpeg. It's still useful, as we can fall back on DShow, but eventually we should remove the fallback for MPEG4 so we can remove this (so we don't nag people to upgrade when they don't need to).
This commit is contained in:
@@ -151,7 +151,8 @@ static void CheckCodecVersion( CString codec, CString desc )
|
||||
Regex GetDivXVersion;
|
||||
|
||||
int major, minor, rev;
|
||||
if( sscanf( desc, "DivX %i.%i.%i", &major, &minor, &rev ) != 3 )
|
||||
if( sscanf( desc, "DivX %i.%i.%i", &major, &minor, &rev ) != 3 &&
|
||||
sscanf( desc, "DivX Pro %i.%i.%i", &major, &minor, &rev ) != 3 )
|
||||
{
|
||||
LOG->Warn( "Couldn't parse DivX version \"%s\"", desc.c_str() );
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user