Commit 44e61560 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

(cherry picked from commit 00eb305f2afebf28dd649d507aca4901d0ad1e8a)
parent 16a0bf72
...@@ -1467,8 +1467,11 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name ) ...@@ -1467,8 +1467,11 @@ static int ProbeDVD( demux_t *p_demux, char *psz_name )
} }
/* 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