Diego Biurrun
8799541a0a
Fix standalone compilation of pipe protocol.
...
file_check() is not only used by the file protocol, adjust #ifdef accordingly.
14 years ago
Stefano Sabatini
59d96941f0
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
...
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.
14 years ago
Stefano Sabatini
313176565c
file: implement url_check() callback in the file and pipe protocols
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
c486dade95
avio: make URLContext internal.
14 years ago
Anton Khirnov
f35ff97f2e
lavf: use designated initializers for all protocols
...
This is more readable and makes it easier to reorder URLProtocol
members.
14 years ago
Anton Khirnov
f87b1b373a
avio: AVIO_ prefixes for URL_ open flags.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
c6610a216e
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.
14 years ago
Måns Rullgård
defb0009cf
Add #ifdefs around code specific to file and pipe protocols
...
Originally committed as revision 24076 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
3f7ab648e5
file_protocol: remove redundant #include sys/time.h
...
Originally committed as revision 24070 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
27241cbffe
Declare the url_write buffer parameter as const
...
Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
ec6791736c
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
15 years ago
Stefano Sabatini
5b33a55376
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
Date: Fri, 2 Apr 2010 13:13:27 +0200
Originally committed as revision 22799 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
f2a4f12cb6
Do not call lseek() with invalid whence value
...
Originally committed as revision 21795 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
fbf7e805b0
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
16 years ago
Ramiro Polla
d4efacff64
Use intptr_t when casting pointers to int.
...
Originally committed as revision 18192 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Ronald S. Bultje
f0a8039464
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
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
16 years ago
Ronald S. Bultje
f989d39752
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
Michael in "[RFC] rtsp.c EOF support" thread.
Originally committed as revision 17768 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
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
16 years ago
Ramiro Polla
b507ebd179
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
16 years ago
Diego Biurrun
bc5c918ea8
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
16 years ago
Baptiste Coudurier
fbcb081161
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
17 years ago
Diego Biurrun
245976da2a
Use full path for #includes from another directory.
...
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ramiro Polla
a5e979f42c
os_support.h is also needed for usleep and lseek on MinGW.
...
Originally committed as revision 11075 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alex Beregszaszi
b5298028b0
Remove empty pipe_close
...
Originally committed as revision 11045 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Vincent Fourmond
9e33b10fd7
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
18 years ago
Vincent Fourmond
de79849eac
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
18 years ago
Ramiro Polla
a12df245a4
10l: removed pipe_close instead of pipe_read
...
Originally committed as revision 10047 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
ee7db7b0b9
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
18 years ago
Ramiro Polla
05d00e953f
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
18 years ago
Måns Rullgård
f7d78f3654
replace the uses of old string functions that Reimar missed
...
Originally committed as revision 9406 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
8fa36ae09d
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.
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
18 years ago
Diego Biurrun
4a49d9b2f8
Remove useless #include.
...
Originally committed as revision 7339 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Ramiro Polla
2cb396eb8b
Remove useless MinGW #ifdefs.
...
patch by Ramiro Polla, ramiro lisha.ufsc br
Originally committed as revision 7338 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
b78e7197a8
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
18 years ago
Diego Biurrun
2f30a81d19
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
19 years ago
Diego Biurrun
5509bffa88
Update licensing information: The FSF changed postal address.
...
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
115329f160
COSMETICS: Remove all trailing whitespace.
...
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Michael Niedermayer
f9a35124a7
fixing pipe seek bug
...
Originally committed as revision 3730 to svn://svn.ffmpeg.org/ffmpeg/trunk
20 years ago
Sascha Sommer
45d6de9258
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
21 years ago
Falk Hüffner
7906085fcc
warning patrol
...
Originally committed as revision 2925 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Michael Niedermayer
c43e7a6611
untested win32 binary pipe fix
...
Originally committed as revision 2922 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Gildas Bazin
ac9fe33d0e
avio patch by (Gildas Bazin <gbazin at altern dot org>)
...
Originally committed as revision 2783 to svn://svn.ffmpeg.org/ffmpeg/trunk
21 years ago
Wolfgang Hesseler
fad05f523c
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
21 years ago
Slavik Gnatenko
f3ec2d46ba
os2 support patch by ("Slavik Gnatenko" <miracle9 at newmail dot ru>)
...
Originally committed as revision 1447 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
Fabrice Bellard
a1dfc201bd
fixed 'file:' in URLs
...
Originally committed as revision 1290 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
Fabrice Bellard
abac617591
renamed libav to libavformat
...
Originally committed as revision 1276 to svn://svn.ffmpeg.org/ffmpeg/trunk
22 years ago
Fabrice Bellard
19720f15fd
license/copyright change
...
Originally committed as revision 593 to svn://svn.ffmpeg.org/ffmpeg/trunk
23 years ago
Fabrice Bellard
8be1c6563c
win32 fixes
...
Originally committed as revision 78 to svn://svn.ffmpeg.org/ffmpeg/trunk
24 years ago
Fabrice Bellard
de6d9b6404
Initial revision
...
Originally committed as revision 5 to svn://svn.ffmpeg.org/ffmpeg/trunk
24 years ago