summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
Commit message (Collapse)AuthorAge
* add FF_API_URL_RESETBUF define to disable the deprecated url_resetbuf()Aurelien Jacobs2010-08-19
| | | | | | public function Originally committed as revision 24841 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: fix indentation and remove a useless else.Reimar Döffinger2010-07-25
| | | | Originally committed as revision 24495 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Simplify get_byte and url_fgetc.Reimar Döffinger2010-07-25
| | | | Originally committed as revision 24494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Never shrink the ByteIOContext buffer in ff_rewind_with_probe_dataMartin Storsjö2010-07-24
| | | | | | | | | If there is little unread data in the ByteIOContext buffer, this may lead to reducing the size of the ByteIOContext buffer to little more the probe data size. This can lead to suboptimal aviobuf behaviour, e.g. making some demuxers fail to do short seeks backwards (if the input isn't seekable). Originally committed as revision 24478 to svn://svn.ffmpeg.org/ffmpeg/trunk
* improve ff_get_line to return line lengthAurelien Jacobs2010-07-21
| | | | Originally committed as revision 24400 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move ff_get_line to aviobuf.cAurelien Jacobs2010-07-21
| | | | Originally committed as revision 24399 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove an assert that was no longer correct nor relevantMartin Storsjö2010-07-20
| | | | Originally committed as revision 24344 to svn://svn.ffmpeg.org/ffmpeg/trunk
* aviobuf: Do short seeks forward by reading and skipping data instead of a ↵Martin Storsjö2010-07-17
| | | | | | | | proper seek This improves performance on e.g. seekable http. Originally committed as revision 24280 to svn://svn.ffmpeg.org/ffmpeg/trunk
* url_fskip: Return an error code if the url_fseek failedMartin Storsjö2010-07-16
| | | | Originally committed as revision 24277 to svn://svn.ffmpeg.org/ffmpeg/trunk
* move ff_get_v_length and ff_put_v from nutenc.c to internal.h/aviobuf.cMichael Chinen2010-07-09
| | | | | | patch by Micheal Chinen < mchinen gmail > Originally committed as revision 24140 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Silence a warning when compiling aviobuf.cEli Friedman2010-07-05
| | | | | | Patch by Eli Friedman, eli d friedman a gmail Originally committed as revision 24055 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Pad the buffer in url_close_dyn_buf, for buffers opened with url_open_dyn_bufJosh Allmann2010-07-01
| | | | | | Patch by Josh Allmann, joshua dot allmann at gmail Originally committed as revision 23942 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not initialize res in url_fseek(), in the case !s->seek directlyStefano Sabatini2010-04-21
| | | | | | | | return AVERROR(EPIPE) rather than the pre-defined value of res. Slightly improve readability. Originally committed as revision 22939 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make url_fsize() return AVERROR(ENOSYS) rather than AVERROR(EPIPE) ifStefano Sabatini2010-04-18
| | | | | | the seek operation is not defined in the ByteIOContext. Originally committed as revision 22902 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not set pos to an error value.Howard Chu2010-04-12
| | | | | | Patch by Howard Chu, hyc highlandsun com Originally committed as revision 22853 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Seeking forward in non-seekable media by discarding data, regardless of how ↵Tomas Härdin2010-04-08
| | | | | | far to seek. Won't SEEK_END unless forced though. Originally committed as revision 22822 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reusing the probe buffer to rewind the ByteIOContext in ↵Tomas Härdin2010-04-08
| | | | | | ff_probe_input_buffer() instead of seeking back to the start of the file. Once exhausted, the size of the buffer is reduced. Originally committed as revision 22821 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mask away AVSEEK_FORCE properly in some checks in url_fseek()Tomas Härdin2010-03-24
| | | | | | Patch by Tomas Härdin $(name).$(s/ä/a/ $(surname)) AT codemill DOT se Originally committed as revision 22653 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make url_fseek() return AVERROR_EOF rather than AVERROR(EPIPE) if endStefano Sabatini2010-03-18
| | | | | | of file is reached. Originally committed as revision 22590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVSEEK_FORCE flag to indicate that the code should attempt to seekMichael Niedermayer2010-03-15
| | | | | | by any means. Originally committed as revision 22557 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 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