[FFmpeg-devel] [PATCH] Make ff_win32_open more robust.

Michael Niedermayer michaelni at gmx.at
Fri Mar 15 21:18:31 CET 2013


On Sun, Mar 10, 2013 at 08:05:10PM +0100, Reimar Döffinger wrote:
> - Make MultiByteToWideChar fail when it encounters invalid encoding.
>   Without this, invalid characters might just be skipped
> - When MultiByteToWideChar fails, assume the file name is in CP_ACP
>   and open it via normal open function, even when the file will be
>   written
> - When malloc fails return error instead of crashing
> 
> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> ---
>  libavformat/os_support.c |   15 +++++++++------
>  1 file changed, 9 insertions(+), 6 deletions(-)

looks correct but i dont know the windows api

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130315/21bad01e/attachment.asc>


More information about the ffmpeg-devel mailing list