avio: deprecate the typedef for URLInterruptCB
There's no particular reason to pollute the namespace with a typedef forit.
avio: make av_register_protocol2 internal.
avio: avio_ prefix for url_set_interrupt_cb.
avio: AVIO_ prefixes for URL_ open flags.
avio: deprecate av_url_read_seek
It's not used anywhere internally.
Salvage its documentation for ffio_read_seek.
avio: deprecate av_url_read_pause
Salvage its documentation for ffio_read_pause.
avio: deprecate url_get_filename().
URLContext.filename should be used directly.
avio: deprecate url_max_packet_size().
URLContext.max_packet_size should be used directly.
avio: make url_get_file_handle() internal.
avio: make url_filesize() internal.
avio: make url_close() internal.
avio: make url_seek() internal.
avio: make url_write() internal.
avio: make url_read_complete() internal.
avio: make url_read() internal.
avio: make url_open() internal.
avio: make url_connect internal.
avio: make url_alloc internal.
avio: deprecate url_open_protocol
The unbuffered API will be made private and it's not used anywhereinternally.
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <firstname.lastname@example.org>
Use AVERROR_EXIT with url_interrupt_cb.
Functions interrupted by url_interrupt_cb should not be restarted.Therefore using AVERROR was wrong, as it did not allow to distinguishwhen the underlying system call was interrupted and actually needed to be...
In retry_transfer_wrapper, do not check url_interrupt_cb, causes problemswhen writing and pressing q during encoding. Instead, check url_interrupt_cbat the end.
Note that when a protocol is interrupted by url_interrupt_cb, some data maybe silently discarded: the protocol context is not suitable for anything...
URLProtocol: Add URL_PROTOCOL_FLAG_NESTED_SCHEME
If this flag is set, the protocol can handle URLs where thescheme is a nested scheme such as applehttp+file: - the protocolcan handle any URL where the first segment of the nested schemebelongs to this protocol....
Non-blocking protocol: core wrapper functions
Signed-off-by: Nicolas George <email@example.com>Signed-off-by: Ronald S. Bultje <firstname.lastname@example.org>
Remove unused variable.
Originally committed as revision 25369 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use retry_transfer_wrapper() in url_write() as its callers do not expect it to stop in the middle.
Originally committed as revision 25368 to svn://svn.ffmpeg.org/ffmpeg/trunk
Factor retry_transfer_wrapper() out of url_read_complete()
Originally committed as revision 25367 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make register_protocol() use the function av_register_protocol2()rather than av_register_protocol(), which is deprecated.Fix the GCC warning:avio.c: In function ‘register_protocol’:avio.c:93: warning: ‘av_register_protocol’ is deprecated (declared at avio.c:86)...
Move AVOptions from libavcodec to libavutil
Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
add FF_API_REGISTER_PROTOCOL define to disable the deprecatedregister_protocol() function
Originally committed as revision 24840 to svn://svn.ffmpeg.org/ffmpeg/trunk
add FF_API_URL_CLASS define to enable usage of URLContext as a AVClass
Originally committed as revision 24835 to svn://svn.ffmpeg.org/ffmpeg/trunk
Allow all valid (and only valid) characters in URL scheme for url_open()
The URL specification allows letters, numbers, plus, hyphen, and periodin the scheme part. The isalpha() test would allow additional charactersdepending on locale settings while rejecting numbers and punctuation....
Remove an unused label, fixing a warning
Patch by Eli Friedman, eli dot friedman at gmail
Originally committed as revision 23828 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add proper const declaration to a cast, fixes a warning
Originally committed as revision 23827 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 23735 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add priv_data_size and priv_data_class to URLProtocol
This allows url_alloc to allocate and initialize the priv_data.
Originally committed as revision 23706 to svn://svn.ffmpeg.org/ffmpeg/trunk
Split url_open and url_open_protocol into url_alloc and url_connect
Originally committed as revision 23704 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add an av_register_protocol2 function that takes a size parameter
This allows extending the URLProtocol struct without breaking binarycompatibility with code compiled with older definitions of the struct.
Originally committed as revision 23702 to svn://svn.ffmpeg.org/ffmpeg/trunk
Declare the url_write buffer parameter as const
Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add version to AVClass so we can add to and use fields of AVClass without ABI issues.
Originally committed as revision 22987 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make url_seek() return AVERROR rather than AVERROR inthe case where the seek operation is not defined in the protocolhandler.
Originally committed as revision 22901 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add AVSEEK_FORCE flag to indicate that the code should attempt to seekby any means.
Originally committed as revision 22557 to svn://svn.ffmpeg.org/ffmpeg/trunk
Always call ff_network_init/ff_network_close when opening protocols
ff_network_init is a no-op on all platforms except windows, and onwindows the performance penalty is minimal (less than 1 ms in my tests).
Originally committed as revision 22224 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use av_mallocz in url_open_protocol for URLContext.Patch by Daniel Kristjansson: danielk cuymedia net
Originally committed as revision 21501 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make url_read_complete handle EAGAIN more intelligently.Only retry 2 - 5 times in quick succession and afterwards sleep a bitto avoid creating high CPU load without any progress.
Originally committed as revision 21427 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make url_read_complete retry on EAGAIN and return how much data it readif it reached EOF, making it useful in more cases.
Originally committed as revision 21393 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix comment typo carefull -> careful
Spotted by someone on IRC.
Originally committed as revision 21261 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move function for reading whole specified amount of data from RTSPdemuxer into more common place.
Originally committed as revision 19087 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add url_get_file_handle(), which is used to get the file descriptorassociated 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...
Rename register_protocol() to av_register_protocol() and deprecateregister_protocol().
Originally committed as revision 17322 to svn://svn.ffmpeg.org/ffmpeg/trunk
Only special-case absolute DOS paths on systems that support them.
Originally committed as revision 15594 to svn://svn.ffmpeg.org/ffmpeg/trunk
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
Implement url_open_protocol(), which is basiclly the former url_open()but which opens a URLProtocol instead of a filename. url_open() isreimplemented to call url_open_protocol(). See discussion on"url_open_protocol" on ffmpeg-devel.
Originally committed as revision 14857 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use full path for #includes from another directory.
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
Check url_seek() in url_open().
Originally committed as revision 13061 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add AVClass to URLContext at next major version bump
Patch by Björn Axelsson (bjorn axelsson intinor se)
Originally committed as revision 12411 to svn://svn.ffmpeg.org/ffmpeg/trunk
url_write is part of the public API so it may not be under ifdef.Also fixes a compile error if all muxers and protocols are disabled.Patch by Guillaume LECERF (foxcore gmail com)
Originally committed as revision 11469 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make recently added and still unused read_seek functions return offset_t.
Originally committed as revision 11274 to svn://svn.ffmpeg.org/ffmpeg/trunk
Merge recently added and still unused play and pause functions.
Originally committed as revision 11273 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove dead code which disappeared with the last major version bump.
Originally committed as revision 11268 to svn://svn.ffmpeg.org/ffmpeg/trunk
av_*_next() API for libavformat
Originally committed as revision 11206 to svn://svn.ffmpeg.org/ffmpeg/trunk
Extend URLProtocol with new function pointers and api functions forav_url_read_play(), av_url_read_pause() and av_url_read_seek().
patch by: Björn Axelsson, bjorn d axelsson a intinor d se
Originally committed as revision 11086 to svn://svn.ffmpeg.org/ffmpeg/trunk
Call prot->url_close only if it is present.
Originally committed as revision 11044 to svn://svn.ffmpeg.org/ffmpeg/trunk
Check context before accessing its field.Patch by Thorsten Jordan: tjordan macrosystem de
Originally committed as revision 10939 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace all occurrences of AVERROR_IO with AVERROR.
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
use new string functionsbased on patch by Reimar Döffinger
Originally committed as revision 9401 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move avio.h's url_get_max_packet_size() comment from source to header file.Remove the comment section of url_set_interrupt_cb() which was a duplicate as itappeared identically in both the header and the source file.
Originally committed as revision 8259 to svn://svn.ffmpeg.org/ffmpeg/trunk
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....
protect the size=seek(SEEK_END,-1)+1 results with an if (.. < 0), else thereturn value may still end up being zero (if the seek returns -1, which ise.g. what file.c will return on error), which is a valid (but incorrect)filesize.Patch by Ronald S. Bultje % rbultje A ronald P bitfreak P net %...
makes the filename member of the URLContext a pointer, so that thestructure can be extended in the future without breaking ABI.patch by Ronald S. Bultje % rbultje A ronald P bitfreak P net %Original thread:Date: Jan 1, 2007 6:01 PMSubject: [Ffmpeg-devel] make URLContext->filename a pointer...
fix indention of previous commit
Originally committed as revision 7396 to svn://svn.ffmpeg.org/ffmpeg/trunk
seekless filesize retrieving support in 7 lines of code, also doesnt break compatibility
Originally committed as revision 7395 to svn://svn.ffmpeg.org/ffmpeg/trunk
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
Add --disable-protocols option to configure to disable I/O protocol fromlibavformat. Also fix build with --disable-muxers and --disable-ffserver.patch by Gildas Bazin < gbazin @** altern **. org >
Originally committed as revision 4879 to svn://svn.ffmpeg.org/ffmpeg/trunk
Update licensing information: The FSF changed postal address.
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
COSMETICS: Remove all trailing whitespace.
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace CONFIG_ENCODERS/CONFIG_DECODERS with CONFIG_MUXERS/CONFIG_DEMUXERSin libavformat to allow building (de)coders and (de)muxers independently atsome point + support for this option in configure.
Originally committed as revision 4611 to svn://svn.ffmpeg.org/ffmpeg/trunk
sweeping change from -EIO -> AVERROR_IO
Originally committed as revision 3239 to svn://svn.ffmpeg.org/ffmpeg/trunk
avoid seeking to the end, as it confuses some crappy code
Originally committed as revision 2996 to svn://svn.ffmpeg.org/ffmpeg/trunk
disable encoders where appropriate (patch courtesy of BERO<bero at geocities.co.jp>)
Originally committed as revision 2375 to svn://svn.ffmpeg.org/ffmpeg/trunk
removed ctype.h header
Originally committed as revision 2225 to svn://svn.ffmpeg.org/ffmpeg/trunk
added primitive aborting system
Originally committed as revision 2058 to svn://svn.ffmpeg.org/ffmpeg/trunk
avoid false URL protocol detection when using ':' in filenames
Originally committed as revision 1595 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 1438 to svn://svn.ffmpeg.org/ffmpeg/trunk
renamed libav to libavformat
Originally committed as revision 1276 to svn://svn.ffmpeg.org/ffmpeg/trunk