summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
Commit message (Collapse)AuthorAge
* Remove duplicated empty line.Stefano Sabatini2010-01-30
| | | | Originally committed as revision 21553 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make url_resetbuf() assert on wrong flags passed and make it static on nextBenoit Fouet2009-10-20
| | | | | | | | version bump. See thread: [FFmpeg-devel] & vs. && Date: Mon, 12 Oct 2009 14:21:06 +0200 Originally committed as revision 20330 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge declaration and initializationReimar Döffinger2009-10-12
| | | | Originally committed as revision 20214 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify: use FFMINReimar Döffinger2009-10-12
| | | | Originally committed as revision 20213 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make get_buffer and get_partial_buffer return url_ferror or AVERROR_EOF asReimar Döffinger2009-10-02
| | | | | | | | appropriate if it couldn't read any data at all. This should make handling of EOF and error simpler or make it work right without extra code in a few place (e.g. raw demuxer). Originally committed as revision 20135 to svn://svn.ffmpeg.org/ffmpeg/trunk
* seek inside buffer when offset is exactly at the end, fix seeking with ↵Baptiste Coudurier2009-04-13
| | | | | | memory ByteIOContext Originally committed as revision 18487 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge declaration and initialization of io_buffer_sizeReimar Döffinger2009-01-16
| | | | Originally committed as revision 16639 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make io_buffer_size unsigned to avoid a warning about comparingReimar Döffinger2009-01-16
| | | | | | signed and unsigned values. Originally committed as revision 16638 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Return AVERROR(ENOMEM) instead of -1 when malloc fails in ↵Reimar Döffinger2009-01-16
| | | | | | url_open_dyn_buf_internal Originally committed as revision 16636 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use AV_WB32 instead of reimplementing it.Reimar Döffinger2009-01-16
| | | | Originally committed as revision 16635 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_mallocz instead of explicitly zeroing in url_open_dyn_buf_internal.Reimar Döffinger2009-01-16
| | | | Originally committed as revision 16634 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace nonsense -1234 return value in dyn_buf_write by proper AVERROR(ENOMEM)Reimar Döffinger2009-01-16
| | | | Originally committed as revision 16633 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Initialize s->opaque before calling url_resetbuf().Aurelien Jacobs2008-12-22
| | | | | | | | Fixes a regression test crash for icc 10.1 64 bit. Patch by Aurelien. Originally committed as revision 16271 to svn://svn.ffmpeg.org/ffmpeg/trunk
* whitespace cosmeticsDiego Biurrun2008-12-13
| | | | Originally committed as revision 16100 to svn://svn.ffmpeg.org/ffmpeg/trunk
* always use the whole buffer for reading w/ packetized sources to avoid ↵Jindřich Makovička2008-11-10
| | | | | | packet truncation Originally committed as revision 15799 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Append read data onto the buffer instead of overwriting, this ensuresMichael Niedermayer2008-10-18
| | | | | | | that the whole buffer is available for seeking back. Fixes issue480 Originally committed as revision 15634 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make size variables in dyn_buf_write unsigned so gcc will not optimize theReimar Döffinger2008-10-04
| | | | | | check away (due to assuming signed overflows do not happen). Originally committed as revision 15555 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove offset_t typedef and use int64_t directly instead.Diego Biurrun2008-10-03
| | | | | | | 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
* Only reset buffer state if seeking is successful; update seek reg ref.Baptiste Coudurier2008-07-31
| | | | Originally committed as revision 14491 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* improve CRC APIAurelien Jacobs2008-01-04
| | | | | | | - don't export any global var - provide either generated or hardcoded tables Originally committed as revision 11409 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a av_alloc_put_byte function.Reimar Döffinger2007-12-22
| | | | | | | The name is in analogy to init_put_byte, but I would not mind it being changed to something better. Originally committed as revision 11305 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make recently added and still unused read_seek functions return offset_t.Michael Niedermayer2007-12-19
| | | | Originally committed as revision 11274 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Merge recently added and still unused play and pause functions.Michael Niedermayer2007-12-19
| | | | Originally committed as revision 11273 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unneeded avio wrapper functions.Michael Niedermayer2007-12-19
| | | | Originally committed as revision 11264 to svn://svn.ffmpeg.org/ffmpeg/trunk
* return error when url_fseek could not read until desired offset in streamed modeBaptiste Coudurier2007-12-16
| | | | Originally committed as revision 11233 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Extend ByteIOContext and add the buffered IO functions:Björn Axelsson2007-11-28
| | | | | | | | av_url_read_fplay(), av_url_read_fpause() and av_url_read_fseek(). patch by: Björn Axelsson, bjorn d axelsson a intinor d se Originally committed as revision 11110 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use dynamically allocated ByteIOContext in AVFormatContextBjörn Axelsson2007-11-21
| | | | | | | patch by: Björn Axelsson, bjorn d axelsson a intinor d se thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007 Originally committed as revision 11071 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ff_ prefix to get_v()Kostya Shishkov2007-11-03
| | | | Originally committed as revision 10912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make get_v() available to the other demuxersKostya Shishkov2007-11-03
| | | | Originally committed as revision 10911 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rename av_crc04C11DB7_update to ff_crc04C11DB7_update and move it to ↵Baptiste Coudurier2007-10-30
| | | | | | aviobuf.c so it can be reused by other (de)muxers Originally committed as revision 10873 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add functionality to set the direction of a ByteIOContext buffer.Björn Axelsson2007-10-11
| | | | | | | | Patch by Björn Axelsson bjorn axelsson intinor se Original thread: [FFmpeg-devel] [PATCH] MMS protocol support patch 1 Date: 09/19/2007 05:51 PM Originally committed as revision 10709 to svn://svn.ffmpeg.org/ffmpeg/trunk
* IndentationBenoit Fouet2007-09-26
| | | | Originally committed as revision 10589 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check read_packet before using it.Benoit Fouet2007-09-26
| | | | Originally committed as revision 10588 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurrences of AVERROR_IO with AVERROR(EIO).Panagiotis Issaris2007-07-19
| | | | Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: fix indentationAlex Beregszaszi2007-05-11
| | | | Originally committed as revision 8998 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move aviobuf.c comments to avio.h. By moving the aviobuf.c comments to avio.h,Panagiotis Issaris2007-03-05
| | | | | | | these comments can be extracted by Doxygen by only accessing the installed headers. Originally committed as revision 8258 to svn://svn.ffmpeg.org/ffmpeg/trunk
* This fixes error handling for BeOS, removing the need for some ifdefs.François Revol2007-02-13
| | | | | | | | | 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
* Fix misbehaviour in url_fseek() when seeking fails.Ronald S. Bultje2007-01-30
| | | | | | | | | | The return value of the seek function is -1 on error, not -EPIPE (the return value in url_seek() if no seek function pointer is set) Patch by Ronald S. Bultje % rbultje A ronald P bitfreak P net % Original thread: date: Dec 31, 2006 9:25 PM subject: [Ffmpeg-devel] Re: [PATCH] file length handling Originally committed as revision 7766 to svn://svn.ffmpeg.org/ffmpeg/trunk
* proper error handling in file size retrieval, patch by Ronald S. Bultje ↵Ronald S. Bultje2007-01-28
| | | | | | rbultje at ronald bitfreak net Originally committed as revision 7736 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix indention of previous commitMichael Niedermayer2007-01-01
| | | | Originally committed as revision 7396 to svn://svn.ffmpeg.org/ffmpeg/trunk
* seekless filesize retrieving support in 7 lines of code, also doesnt break ↵Michael Niedermayer2007-01-01
| | | | | | compatibility Originally committed as revision 7395 to svn://svn.ffmpeg.org/ffmpeg/trunk
* put_*() are not only useful to muxers and protocolAurelien Jacobs2006-12-16
| | | | | | fix compilation of matroska demuxer with --disable-muxers --disable-protocols Originally committed as revision 7323 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix compile with --disable-muxers, patch by Loïc Le Loarer, lll+ffmpeg m4x org.Loïc Le Loarer2006-11-30
| | | | Originally committed as revision 7185 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move memory reading ByteIOContext init from mov.c to avobuf.cMichael Niedermayer2006-10-20
| | | | Originally committed as revision 6744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun2006-10-07
| | | | | | and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* support forward seeking in non seekable streamsMichael Niedermayer2006-09-26
| | | | Originally committed as revision 6340 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplify seek() failure checkMichael Niedermayer2006-09-26
| | | | Originally committed as revision 6339 to svn://svn.ffmpeg.org/ffmpeg/trunk
* simplify url_fseek()Michael Niedermayer2006-09-22
| | | | Originally committed as revision 6316 to svn://svn.ffmpeg.org/ffmpeg/trunk