[FFmpeg-devel] [PATCH] Fix return value check for open()

İsmail Dönmez ismail
Fri Jul 24 13:38:10 CEST 2009


Hi,

On Fri, Jul 24, 2009 at 2:33 PM, Martin Storsj?<martin at martin.st> wrote:
> According to all manuals I've checked (both linux & darwin manpages, and
> msdn docs), open() returns exactly -1 on error, not any generic negative
> number. The attached patch fixes the return value check in
> libavformat/file.c.
>
> On WinCE, the return values from successful open() calls are negative
> sometimes, making url_open() calls fail randomly. This is fixed by the
> attached patch.

I am using this patch locally for some time and it fixes random file
opening failures on WinCE.

Regards.

-- 
?smail D?NMEZ



More information about the ffmpeg-devel mailing list