[FFmpeg-devel] [PATCH] Document avio.h:url_exist()
Stefano Sabatini
stefano.sabatini-lala
Sat Jan 23 19:23:37 CET 2010
On date Saturday 2010-01-23 18:45:24 +0100, Stefano Sabatini encoded:
> Hi, as in subject.
> --
> FFmpeg = Faithful and Freak MultiPurpose Enhanced Ghost
> Index: ffmpeg/libavformat/avio.h
> ===================================================================
> --- ffmpeg.orig/libavformat/avio.h 2010-01-23 18:42:36.000000000 +0100
> +++ ffmpeg/libavformat/avio.h 2010-01-23 18:43:46.000000000 +0100
> @@ -104,6 +104,10 @@
> int url_write(URLContext *h, unsigned char *buf, int size);
> int64_t url_seek(URLContext *h, int64_t pos, int whence);
> int url_close(URLContext *h);
> +
> +/**
> + * Returns 1 if the resource indicated by url exists, 0 otherwise.
> + */
> int url_exist(const char *url);
> int64_t url_filesize(URLContext *h);
Just want to say that the current behavior of url_exist() is not
correct, for example it will return 0 if the checked file is a file
with permission a-w.
Regards.
--
FFmpeg = Fostering and Foolish Magical Prodigious Enchanting Gadget
More information about the ffmpeg-devel
mailing list