Statistics
| Branch: | Revision:

ffmpeg / libavformat / file.c @ 4dcde00c

History | View | Annotate | Download (3.27 KB)

# Date Author Comment
2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

c6610a21 01/26/2011 10:10 PM Diego Elio Pettenò

Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.

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.

defb0009 07/06/2010 02:28 PM Måns Rullgård

Add #ifdefs around code specific to file and pipe protocols

Originally committed as revision 24076 to svn://svn.ffmpeg.org/ffmpeg/trunk

3f7ab648 07/06/2010 11:42 AM Måns Rullgård

file_protocol: remove redundant #include sys/time.h

Originally committed as revision 24070 to svn://svn.ffmpeg.org/ffmpeg/trunk

27241cbf 06/01/2010 07:46 AM Martin Storsjö

Declare the url_write buffer parameter as const

Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk

ec679173 04/26/2010 10:36 PM Stefano Sabatini

Make file_open() return the error code set in errno if open() fails,
rather than always ENOENT.

Originally committed as revision 22972 to svn://svn.ffmpeg.org/ffmpeg/trunk

5b33a553 04/04/2010 02:21 PM Stefano Sabatini

Implement support to the AVSEEK_SIZE operation in file_seek().

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...

f2a4f12c 02/13/2010 04:56 PM Måns Rullgård

Do not call lseek() with invalid whence value

Originally committed as revision 21795 to svn://svn.ffmpeg.org/ffmpeg/trunk

fbf7e805 07/27/2009 12:36 PM Martin Storsjö

Only consider -1 as an error return value for open().
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

d4efacff 03/26/2009 01:34 AM Ramiro Polla

Use intptr_t when casting pointers to int.

Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk

f0a80394 03/03/2009 05:04 PM Ronald S. Bultje

Add url_get_file_handle(), which is used to get the file descriptor
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...

f989d397 03/03/2009 01:57 PM Ronald S. Bultje

Remove size_t cast in setting s->priv_data directly to the (integer) file
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...

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk

b507ebd1 01/11/2009 10:05 PM Ramiro Polla

Use setmode() if it exists in <io.h>, and not based on O_BINARY.

Originally committed as revision 16553 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc5c918e 10/03/2008 10:16 AM Diego Biurrun

Remove offset_t typedef and use int64_t directly instead.
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

fbcb0811 05/27/2008 01:19 AM Baptiste Coudurier

remove const qualifier, removes warning:
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

245976da 05/09/2008 11:56 AM Diego Biurrun

Use full path for #includes from another directory.

Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk

a5e979f4 11/22/2007 02:27 AM Ramiro Polla

os_support.h is also needed for usleep and lseek on MinGW.

Originally committed as revision 11075 to svn://svn.ffmpeg.org/ffmpeg/trunk

b5298028 11/16/2007 12:18 AM Alex Beregszaszi

Remove empty pipe_close

Originally committed as revision 11045 to svn://svn.ffmpeg.org/ffmpeg/trunk

9e33b10f 08/17/2007 03:14 PM Vincent Fourmond

Allow pipe: URL to take fd number as input
Patch by Vincent Fourmond [vincent dot fourmond at 9online dot fr]

Originally committed as revision 10134 to svn://svn.ffmpeg.org/ffmpeg/trunk

de79849e 08/17/2007 03:12 PM Vincent Fourmond

Indent for next commit
Patch by Vincent Fourmond [vincent dot fourmond at 9online dot fr]

Originally committed as revision 10133 to svn://svn.ffmpeg.org/ffmpeg/trunk

a12df245 08/10/2007 01:39 AM Ramiro Polla

10l: removed pipe_close instead of pipe_read

Originally committed as revision 10047 to svn://svn.ffmpeg.org/ffmpeg/trunk

ee7db7b0 08/09/2007 11:41 PM Ramiro Polla

Make the pipe URLProtocol share read and write functions with the file URLProtocol

Originally committed as revision 10041 to svn://svn.ffmpeg.org/ffmpeg/trunk

05d00e95 06/25/2007 08:34 PM Ramiro Polla

Check for O_BINARY instead of a list of systems that need it

Originally committed as revision 9427 to svn://svn.ffmpeg.org/ffmpeg/trunk

f7d78f36 06/24/2007 11:27 AM Måns Rullgård

replace the uses of old string functions that Reimar missed

Originally committed as revision 9406 to svn://svn.ffmpeg.org/ffmpeg/trunk

8fa36ae0 02/13/2007 06:26 PM François Revol

This fixes error handling for BeOS, removing the need for some ifdefs.
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....

4a49d9b2 12/21/2006 11:14 AM Diego Biurrun

Remove useless #include.

Originally committed as revision 7339 to svn://svn.ffmpeg.org/ffmpeg/trunk

2cb396eb 12/21/2006 11:12 AM Ramiro Polla

Remove useless MinGW #ifdefs.
patch by Ramiro Polla, ramiro lisha.ufsc br

Originally committed as revision 7338 to svn://svn.ffmpeg.org/ffmpeg/trunk

b78e7197 10/07/2006 03:30 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program/this library'
and fix GPL/LGPL version mismatches.

Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk

2f30a81d 07/11/2006 09:45 PM Diego Biurrun

CONFIG_WIN32 implies MinGW and Cygwin and possibly more, so use just
CONFIG_MINGW or MINGW32 instead.

Originally committed as revision 5718 to svn://svn.ffmpeg.org/ffmpeg/trunk

5509bffa 01/12/2006 10:43 PM Diego Biurrun

Update licensing information: The FSF changed postal address.

Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk

115329f1 12/17/2005 06:14 PM Diego Biurrun

COSMETICS: Remove all trailing whitespace.

Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk

f9a35124 12/06/2004 12:08 AM Michael Niedermayer

fixing pipe seek bug

Originally committed as revision 3730 to svn://svn.ffmpeg.org/ffmpeg/trunk

45d6de92 04/24/2004 01:10 PM Sascha Sommer

nut files in cygwin patch by ("Sascha Sommer" <saschasommer at freenet dot de>)

Originally committed as revision 3054 to svn://svn.ffmpeg.org/ffmpeg/trunk

7906085f 03/24/2004 11:32 PM Falk Hüffner

warning patrol

Originally committed as revision 2925 to svn://svn.ffmpeg.org/ffmpeg/trunk

c43e7a66 03/24/2004 06:29 PM Michael Niedermayer

untested win32 binary pipe fix

Originally committed as revision 2922 to svn://svn.ffmpeg.org/ffmpeg/trunk

ac9fe33d 02/14/2004 04:25 PM Gildas Bazin

avio patch by (Gildas Bazin <gbazin at altern dot org>)

Originally committed as revision 2783 to svn://svn.ffmpeg.org/ffmpeg/trunk

fad05f52 12/14/2003 05:47 PM Wolfgang Hesseler

cygwin fix and dont average interlaced MVs patch by (Wolfgang Hesseler <qv at multimediaware dot com>)

Originally committed as revision 2609 to svn://svn.ffmpeg.org/ffmpeg/trunk

f3ec2d46 01/11/2003 08:34 PM Slavik Gnatenko

os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)

Originally committed as revision 1447 to svn://svn.ffmpeg.org/ffmpeg/trunk

a1dfc201 11/29/2002 07:19 PM Fabrice Bellard

fixed 'file:' in URLs

Originally committed as revision 1290 to svn://svn.ffmpeg.org/ffmpeg/trunk

abac6175 11/25/2002 07:07 PM Fabrice Bellard

renamed libav to libavformat

Originally committed as revision 1276 to svn://svn.ffmpeg.org/ffmpeg/trunk