shuaiwangheight / mp4v2

Automatically exported from code.google.com/p/mp4v2
Other
0 stars 0 forks source link

Cannot use non-canonical full path name on win32 #151

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Non-canonical paths such as C:\foo\\\bar\\\\\\\\\\\\\\bazz.mp4 are valid, but 
mp4v2 fails to open them.

mp4v2 will insert prefix \\?\ when the path name looks like a full path name 
(to get very long file name support). However, it doesn't normalize the path.
Although win32 CreateFile() allows non-canonical path names, if seems to 
require the path to be canonical when \\?\ prefix is used.

To fix the problem, GetFullPathName() should be used when inserting \\?\ prefix.

Original issue reported on code.google.com by honeycom...@gmail.com on 18 Dec 2012 at 12:57

GoogleCodeExporter commented 8 years ago
If you can give me a patch, I can work it in sometime this week.  Sorry for the 
delay.

Original comment by kid...@gmail.com on 13 May 2013 at 3:36

GoogleCodeExporter commented 8 years ago

Original comment by kid...@gmail.com on 13 May 2013 at 3:36

GoogleCodeExporter commented 8 years ago
OK, sorry to be late. Patch attached.

Original comment by honeycom...@gmail.com on 27 Aug 2013 at 6:22

Attachments: