summaryrefslogtreecommitdiff
path: root/libavformat/file.c
Commit message (Collapse)AuthorAgeFilesLines
* libavformat: use avpriv_open()Rémi Denis-Courmont2013-08-071-1/+2
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* file: Set the return value type for lseek to int64_t.Yusuke Nakamura2012-10-091-1/+1
| | | | | | This fixes a regression in 4ed5ac5. Signed-off-by: Martin Storsjö <martin@martin.st>
* file: return proper error on seek failuresLuca Barbato2012-09-161-2/+8
|
* file: Add an avoption for disabling truncating existing files on openMartin Storsjö2012-09-121-2/+22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* file: Use a normal private context for storing the file descriptorMartin Storsjö2012-09-101-12/+21
| | | | | | Previously the file descriptor was stored in the priv_data pointer. Signed-off-by: Martin Storsjö <martin@martin.st>
* file: Only include unistd.h if it existsRonald S. Bultje2012-06-291-1/+3
| | | | | | | | | | | | It is included for the open/read/write/close functions. On MSVC, where this header does not exist, the same functions are provided by io.h, which is already included. On windows, these functions are provided by io.h. Make sure io.h is included if it exists, regardless of the setmode function. Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove some stray unnecessary ffmpeg references.Diego Biurrun2011-11-021-1/+1
|
* Fix standalone compilation of pipe protocol.Diego Biurrun2011-05-041-13/+13
| | | | file_check() is not only used by the file protocol, adjust #ifdef accordingly.
* avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbolsStefano Sabatini2011-04-191-6/+5
| | | | | | | | Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API.
* file: implement url_check() callback in the file and pipe protocolsStefano Sabatini2011-04-131-0/+16
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: make URLContext internal.Anton Khirnov2011-04-081-0/+1
|
* lavf: use designated initializers for all protocolsAnton Khirnov2011-04-081-10/+10
| | | | | This is more readable and makes it easier to reorder URLProtocol members.
* avio: AVIO_ prefixes for URL_ open flags.Anton Khirnov2011-04-071-3/+3
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-261-2/+2
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* Add #ifdefs around code specific to file and pipe protocolsMåns Rullgård2010-07-061-18/+24
| | | | Originally committed as revision 24076 to svn://svn.ffmpeg.org/ffmpeg/trunk
* file_protocol: remove redundant #include sys/time.hMåns Rullgård2010-07-061-1/+0
| | | | Originally committed as revision 24070 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Declare the url_write buffer parameter as constMartin Storsjö2010-06-011-1/+1
| | | | Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make file_open() return the error code set in errno if open() fails,Stefano Sabatini2010-04-261-1/+1
| | | | | | rather than always ENOENT. Originally committed as revision 22972 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement support to the AVSEEK_SIZE operation in file_seek().Stefano Sabatini2010-04-041-2/+6
| | | | | | | | | | | Avoid the need to use seeking for getting the file size, use fstat instead, which is significantly faster. See thread: Subject: [FFmpeg-devel] [PATCH] Add support to AVSEEK_SIZE to the file protocol seek callback Date: Fri, 2 Apr 2010 13:13:27 +0200 Originally committed as revision 22799 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not call lseek() with invalid whence valueMåns Rullgård2010-02-131-0/+2
| | | | Originally committed as revision 21795 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only consider -1 as an error return value for open().Martin Storsjö2009-07-271-1/+1
| | | | | | | | | | This is: - what Posix says (-1 on error, >=0 on success) - fixing a bug on winCE (<0 sometimes) Patch by Martin Storsjö: martin martin st Originally committed as revision 19513 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use intptr_t when casting pointers to int.Ramiro Polla2009-03-261-7/+7
| | | | Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add url_get_file_handle(), which is used to get the file descriptorRonald S. Bultje2009-03-031-0/+7
| | | | | | | | | | | associated with the I/O handle (e.g. the fd returned by open()). See "[RFC] rtsp.c EOF support" thread. There were previously some URI-specific implementations of the same idea, e.g. rtp_get_file_handles() and udp_get_file_handle(). All of these are deprecated by this patch and will be removed at the next major API bump. Originally committed as revision 17779 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove size_t cast in setting s->priv_data directly to the (integer) fileRonald S. Bultje2009-03-031-6/+6
| | | | | | | | | descriptor returned by open(). This removes some dubious doublecasts such as priv_data = (void *) (size_t) some_integer, and is always safe on systems we care about because sizeof(int)<=sizeof(void*). See comments from Mans and Michael in "[RFC] rtsp.c EOF support" thread. Originally committed as revision 17768 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-131-2/+2
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use setmode() if it exists in <io.h>, and not based on O_BINARY.Ramiro Polla2009-01-111-1/+4
| | | | Originally committed as revision 16553 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove offset_t typedef and use int64_t directly instead.Diego Biurrun2008-10-031-1/+1
| | | | | | | The name offset_t is easily confused with the standard off_t type and *_t is POSIX reserved namespace if any POSIX header is included. Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove const qualifier, removes warning:Baptiste Coudurier2008-05-271-1/+1
| | | | | | libavformat/file.c:99: warning: passing argument 2 of 'strtol' from incompatible pointer type Originally committed as revision 13454 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-091-1/+2
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* os_support.h is also needed for usleep and lseek on MinGW.Ramiro Polla2007-11-221-0/+1
| | | | Originally committed as revision 11075 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove empty pipe_closeAlex Beregszaszi2007-11-161-7/+0
| | | | Originally committed as revision 11045 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow pipe: URL to take fd number as inputVincent Fourmond2007-08-171-0/+6
| | | | | | Patch by Vincent Fourmond [vincent dot fourmond at 9online dot fr] Originally committed as revision 10134 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Indent for next commitVincent Fourmond2007-08-171-5/+5
| | | | | | Patch by Vincent Fourmond [vincent dot fourmond at 9online dot fr] Originally committed as revision 10133 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: removed pipe_close instead of pipe_readRamiro Polla2007-08-101-3/+2
| | | | Originally committed as revision 10047 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the pipe URLProtocol share read and write functions with the file ↵Ramiro Polla2007-08-091-13/+2
| | | | | | URLProtocol Originally committed as revision 10041 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check for O_BINARY instead of a list of systems that need itRamiro Polla2007-06-251-2/+2
| | | | Originally committed as revision 9427 to svn://svn.ffmpeg.org/ffmpeg/trunk
* replace the uses of old string functions that Reimar missedMåns Rullgård2007-06-241-1/+2
| | | | Originally committed as revision 9406 to svn://svn.ffmpeg.org/ffmpeg/trunk
* This fixes error handling for BeOS, removing the need for some ifdefs.François Revol2007-02-131-1/+1
| | | | | | | | | AVERROR_ defines are moved to avcodec.h as they are needed in there as well. Feel free to move that to avutil/common.h. Bumped up avcodec/format version numbers as though it's binary compatible we will want to rebuild apps as error values changed. Please from now on use return AVERROR(EFOO) instead of the ugly return -EFOO in your code. This also removes the need for berrno.h. Originally committed as revision 7965 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless #include.Diego Biurrun2006-12-211-3/+0
| | | | Originally committed as revision 7339 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless MinGW #ifdefs.Ramiro Polla2006-12-211-9/+2
| | | | | | patch by Ramiro Polla, ramiro lisha.ufsc br Originally committed as revision 7338 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun2006-10-071-4/+6
| | | | | | and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use justDiego Biurrun2006-07-111-5/+5
| | | | | | CONFIG_MINGW or __MINGW32__ instead. Originally committed as revision 5718 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update licensing information: The FSF changed postal address.Diego Biurrun2006-01-121-1/+1
| | | | Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: Remove all trailing whitespace.Diego Biurrun2005-12-171-1/+1
| | | | Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fixing pipe seek bugMichael Niedermayer2004-12-061-0/+1
| | | | Originally committed as revision 3730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* nut files in cygwin patch by ("Sascha Sommer" <saschasommer at freenet dot de>)Sascha Sommer2004-04-241-1/+1
| | | | Originally committed as revision 3054 to svn://svn.ffmpeg.org/ffmpeg/trunk
* warning patrolFalk Hüffner2004-03-241-8/+8
| | | | Originally committed as revision 2925 to svn://svn.ffmpeg.org/ffmpeg/trunk
* untested win32 binary pipe fixMichael Niedermayer2004-03-241-0/+3
| | | | Originally committed as revision 2922 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avio patch by (Gildas Bazin <gbazin at altern dot org>)Gildas Bazin2004-02-141-1/+3
| | | | Originally committed as revision 2783 to svn://svn.ffmpeg.org/ffmpeg/trunk