Commit 00eb305f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dvdnav: also white-list *.img files (fixes #4951)

parent cda2009e
...@@ -1482,8 +1482,11 @@ static int ProbeDVD( const char *psz_name ) ...@@ -1482,8 +1482,11 @@ static int ProbeDVD( const char *psz_name )
} }
#endif #endif
/* Match extension as the anchor exhibits too many false positives */ /* Match extension as the anchor exhibits too many false positives */
const size_t len = strlen( psz_name ); const char *ext = strrchr( psz_name, '.' );
if( len < 4 || strcasecmp( psz_name + len - 4, ".iso" ) ) if( ext == NULL )
goto bailout;
ext++;
if( strcasecmp( ext, "iso" ) && strcasecmp( ext, "img" ) )
goto bailout; goto bailout;
/* Try to find the anchor (2 bytes at LBA 256) */ /* Try to find the anchor (2 bytes at LBA 256) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment