History | View | Annotate | Download (15.1 KB)
http: header field names are case insensitive
Amazon S3 sends header field names all lowercase.This is actually acceptable according to the HTTP standard.
http://tools.ietf.org/html/rfc2616#section-4.2
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <mans@mansr.com>
Replace dprintf with av_dlog
dprintf clashes with POSIX.1-2008
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
This also lists the objects from those two libraries as internal (by addingthe ff_ prefix) so that they can then be hidden via linker scripts.
http: Handle 301/307 redirect requests, too
Patch by Mike Edenfield, kutulu at kutulu dot org
Originally committed as revision 25651 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move AVOptions from libavcodec to libavutil
Originally committed as revision 25210 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move the definition of the maximum url size for static buffers to internal.h
Originally committed as revision 24833 to svn://svn.ffmpeg.org/ffmpeg/trunk
http: Return EOF at the end of the content even if the connection isn't closed
We do request Connection: close, but some servers ignore it.
Originally committed as revision 24746 to svn://svn.ffmpeg.org/ffmpeg/trunk
http: Log a warning when receiving an error code
Originally committed as revision 24266 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make ff_url_split() public
ff_url_split() is retained as an alias, as it was used by ffserver,to avoid breaking ABI compatibility with it.
Originally committed as revision 23822 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make the http protocol open the connection immediately in http_open again
Also make the RTSP protocol use url_alloc and url_connect instead of relyingon the delay open behaviour.
Originally committed as revision 23710 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add an AVClass to the HTTPContext
Originally committed as revision 23709 to svn://svn.ffmpeg.org/ffmpeg/trunk
Allocate the HTTPContext through URLProtocol.priv_data_size
Originally committed as revision 23708 to svn://svn.ffmpeg.org/ffmpeg/trunk
HTTP: Add a method for initializing the authentication state from another connection
Originally committed as revision 23685 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent
Originally committed as revision 23684 to svn://svn.ffmpeg.org/ffmpeg/trunk
HTTP: Compact the code for writing chunked post data
Originally committed as revision 23683 to svn://svn.ffmpeg.org/ffmpeg/trunk
HTTP: Get rid of the is_chunked variable, use the chunksize variable instead
Originally committed as revision 23682 to svn://svn.ffmpeg.org/ffmpeg/trunk
HTTP: Clarify a comment
Originally committed as revision 23681 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reset chunksize back to zero (= no chunked encoding) after each new openconnection (e.g. a seek). This fixes the theoretical case where a serversends a file first using chunked encoding, and then using non-chunkedencoding.
Originally committed as revision 23665 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use url_write(), not http_write(), for sending the HTTP headers. This preventsthem from being sent using chunked encoding (I don't think this ever happened,but either way it would be wrong).
Originally committed as revision 23664 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make sure the http protocol handler returns errors if a delayed open had failed
Originally committed as revision 23548 to svn://svn.ffmpeg.org/ffmpeg/trunk
Initialize the http connection in http_seek, too
This makes url_fsize return correct values for delay opened connectionsthat have not yet been initialized.This fixes using the image2 demuxer with http sources.
Originally committed as revision 23546 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 23534 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add support for disabling chunked transfer encoding for the http protocol
Patch by Josh Allmann, josh dot allmann at gmail
Originally committed as revision 23531 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix handling of errors in the http protocol
If http_connect fails, we've already stored the new connection handle in s->hd,so clear it so http_close won't double-free it.
10l to me for not spotting it during review
Originally committed as revision 23529 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix bugs in the http custom header handling
Initialize the buffer av_strlcatf writes into.Add the dash at the end of the Range header.
10l to me for not spotting it earlier
Originally committed as revision 23528 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add the capability to write custom HTTP headers
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 23526 to svn://svn.ffmpeg.org/ffmpeg/trunk
Modify the behaviour of http_open to implicitly delay connection establishment
The connection is made on the first http_read, http_write or http_seek.
Originally committed as revision 23525 to svn://svn.ffmpeg.org/ffmpeg/trunk
http: Set http_code to 200 when doing a POST
This avoids reading and comparing uninitialized memory.
Originally committed as revision 23464 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
Split out http authentication handling into a separate file
This prepares for adding support for more authentication methods
Originally committed as revision 22660 to svn://svn.ffmpeg.org/ffmpeg/trunk
move ff_url_split() and ff_url_join() declarations to internal.hthose functions are not part of the public API
Originally committed as revision 22534 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 22322 to svn://svn.ffmpeg.org/ffmpeg/trunk
Rename url_split to ff_url_split
Since this function isn't in the public API, it should have an ff_ prefix.
Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use ff_url_join for assembling URLs, instead of snprintf
This ensures proper escaping of numerical IPv6 addresses.
The RTSP (de)muxer needs its own network initialization, since it isn'ta protocol and url_open hasn't been called yet.
Originally committed as revision 22226 to svn://svn.ffmpeg.org/ffmpeg/trunk
restore old buffer content when seek failed in http protocol, fix issue #1631
Originally committed as revision 21208 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent after r21166.
Originally committed as revision 21167 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use chunked encoding for HTTP uploads. Patch by Tomas Härdin<$firstname.$lastname()codemill,se>.
Originally committed as revision 21166 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add support for "chunked" data blocks. Patch by Peter Holik (peter holik at).
Originally committed as revision 19256 to svn://svn.ffmpeg.org/ffmpeg/trunk
Cosmetics : Use dprintf instead of printf.Patch by Peter Holik < $firstname @ $lastname . at >
Originally committed as revision 19126 to svn://svn.ffmpeg.org/ffmpeg/trunk
Cosmetics : Fix indentation after last commit.
Originally committed as revision 19125 to svn://svn.ffmpeg.org/ffmpeg/trunk
Introduce http_get_line and modify http_connect to use http_get_line.Patch by Peter Holik <$firstname @ $lastname . at>
Originally committed as revision 19124 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...
Reduce allocated length of the HTTP authentication request field buffer, asnoticed by Stefano and Luca in the "[PATCH]RTSP Basic Authentication" mailinglist thread.
av_base64_encode() was recently changed. The previous implementation required12 extra bytes (ceil(len(src)/3.)*4+12), whereas the new one is guaranteed to...
cosmetics: Remove pointless period after copyright statement non-sentences.
Originally committed as revision 16684 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
Use full path for #includes from another directory.
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove a pointless cast.
Originally committed as revision 11819 to svn://svn.ffmpeg.org/ffmpeg/trunk
Missing 'const' in cast.
Originally committed as revision 11814 to svn://svn.ffmpeg.org/ffmpeg/trunk
Revert hack which should have never been commited.------------------------------------------------------------------------r464 | philipjsg | 2002-05-09 03:19:15 +0200 (Thu, 09 May 2002) | 3 lines
os_support.h is also needed for usleep and lseek on MinGW.
Originally committed as revision 11075 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
replace the uses of old string functions that Reimar missed
Originally committed as revision 9406 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
Use usleep instead of sleep, some MinGW versions lack sleep.
Originally committed as revision 9044 to svn://svn.ffmpeg.org/ffmpeg/trunk
typos/grammar
Originally committed as revision 8641 to svn://svn.ffmpeg.org/ffmpeg/trunk
expose av_base64_decode and av_base64_encode
Originally committed as revision 8448 to svn://svn.ffmpeg.org/ffmpeg/trunk
Properly initialize filesize during input buffer initialization.patch by Ronald S. Bultje, rbultje ronald.bitfreak net
Originally committed as revision 8343 to svn://svn.ffmpeg.org/ffmpeg/trunk
handle http error codes
Originally committed as revision 8272 to svn://svn.ffmpeg.org/ffmpeg/trunk
Close connection on EOFthis makes downloading some asx files from MSstreaming servers work again (they would hang on eos).The http request header property connection:close is needed for some1.1 HTTP servers to close the connection at the end of file....
make HTTP MOVED messages also work in ffmpeg (302 is essentially the same as 303).patch by "Ronald S. Bultje" % rbultje A ronald P bitfreak P net%original thread:Date: Mar 4, 2007 1:21 AMSubject: [Ffmpeg-devel] http move
Originally committed as revision 8219 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reverting stray commit part II, r8156 had the base64 export patch mixed with the nutdec patch
Originally committed as revision 8158 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reverting stray commit part I
Originally committed as revision 8157 to svn://svn.ffmpeg.org/ffmpeg/trunk
get_packetheader() forgot to read the header_checksum in big packetspatch from Clemens Ladisch cladisch AT fastmail dot net(stray base64 patch reverted in the next commits)
Originally committed as revision 8156 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....
move networking #includes into separate filepatch by Ramiro Polla angustia =a= arrozcru =d= no-ip =d= org
Originally committed as revision 7817 to svn://svn.ffmpeg.org/ffmpeg/trunk
use more portable PRIu64
Originally committed as revision 7707 to svn://svn.ffmpeg.org/ffmpeg/trunk
The long awaited BeOS cleanup, phase 1
Originally committed as revision 7581 to svn://svn.ffmpeg.org/ffmpeg/trunk
add support for HTTP seekingpatch by Ronald S. Bultje % rbultje A ronald P bitfreak P net %Original thread:Date: Jan 4, 2007 5:42 AMSubject: [Ffmpeg-devel] [PATCH/RFC] http seeking
Originally committed as revision 7505 to svn://svn.ffmpeg.org/ffmpeg/trunk
switch to common base64 routines in lavfPatch by Ryan Martell % rdm4 A martellventures P com %Original thread:Date: Oct 29, 2006 2:45 AMSubject: Re: [Ffmpeg-devel] [PATCH] Base64 code
Originally committed as revision 6832 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
Fix memleak, patch by I. Po % yyymmmm # gmail O com %Original thread:Date: Jul 18, 2006 3:49 PMSubject: Re: [Ffmpeg-devel] [PATCH] http.c: http_connect() memleak
Originally committed as revision 5785 to svn://svn.ffmpeg.org/ffmpeg/trunk
simplify b64_encode()maybe this should be moved to libavutil ...
Originally committed as revision 5782 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
kill warnings patch by (Måns Rullgård <mru inprovide com>)
Originally committed as revision 3977 to svn://svn.ffmpeg.org/ffmpeg/trunk
integer overflows, heap corruptionpossible arbitrary code execution cannot be ruled out in some casesprecautionary checks
Originally committed as revision 3813 to svn://svn.ffmpeg.org/ffmpeg/trunk
HTTP Authentication Patch by (Petr Doubek <doubek at vision dot ee dot ethz dot ch>)tested and submitted by (Torsten Spindler <spindler at hbt dot arch dot ethz dot ch>)
Originally committed as revision 3381 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
no read loop tcp/http and http CRLF fix by (Leon van Stuivenberg <l dot vanstuivenberg at chello dot nl>)
Originally committed as revision 2885 to svn://svn.ffmpeg.org/ffmpeg/trunk
using LIBAVFORMAT_IDENT
Originally committed as revision 2575 to svn://svn.ffmpeg.org/ffmpeg/trunk
removed ctype.h header
Originally committed as revision 2225 to svn://svn.ffmpeg.org/ffmpeg/trunk
simplified
Originally committed as revision 1655 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 1578 to svn://svn.ffmpeg.org/ffmpeg/trunk
renamed libav to libavformat
Originally committed as revision 1276 to svn://svn.ffmpeg.org/ffmpeg/trunk