Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | aviobuf: Discard old buffered, previously read data in ffio_read_partial | Martin Storsjö | 2013-01-03 | 1 | -0/+7 |
| | | | | | | | This makes RTP custom IO work properly with pure read-only AVIOContexts as well. Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | aviobuf: Partial support for reading in read/write contexts | Martin Storsjö | 2013-01-03 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | So far, aviocontexts are used either in pure-read or pure-write mode - full read/write mode doesn't work well (and implementing it is a much larger, not totally trivial change). This patch allows using avio_read and ffio_read_partial on read/write aviocontexts, where the read operations are passed through directly unbuffered, while writes are buffered as usual. This is enough to support the operations needed by packet based data transfer like in udp/rtp, where aviocontext is the only public API for hooking up custom IO. Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | miscellaneous typo fixes | Diego Biurrun | 2012-12-21 | 1 | -1/+1 |
| | |||||
* | avio: K&R cosmetic formatting | Luca Barbato | 2012-12-09 | 1 | -54/+67 |
| | |||||
* | aviobuf: Remove a senseless ifdef in avio_seek | Martin Storsjö | 2012-10-18 | 1 | -2/+0 |
| | | | | | | | | | This seemed to assume that one never used writing avio unless muxers or networking was enabled. This ifdef is a remnant since 8fa641f8. Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | avio: introduce avio_closep | Luca Barbato | 2012-10-10 | 1 | -0/+7 |
| | |||||
* | avio: flush the internal buffer in avio_close() | Stefano Sabatini | 2012-09-15 | 1 | -0/+1 |
| | | | | | This is consistent with stdio, and thus what people would naturally expect. | ||||
* | avio: make avio_close NULL the freed buffer | Luca Barbato | 2012-09-04 | 1 | -1/+1 |
| | |||||
* | avio: make avio_close(NULL) a no-op | Luca Barbato | 2012-04-27 | 1 | -1/+5 |
| | | | | Its behaviour in line with ffurl_close(NULL). | ||||
* | lavf: remove disabled FF_API_OLD_AVIO cruft | Anton Khirnov | 2012-01-27 | 1 | -289/+1 |
| | |||||
* | cosmetics: drop some pointless parentheses | Diego Biurrun | 2012-01-07 | 1 | -1/+1 |
| | |||||
* | avio: exit early in fill_buffer without read_packet | Janne Grunau | 2012-01-04 | 1 | -0/+4 |
| | | | | | | | Fixes an invalid free() with ass in avi. The sample in bug 98 passes parts of AVPacket.data as buffer for the AVIOContext. Since the packet is quite large fill_buffer tries to reallocate the buffer before doing nothing. Fixes bug 98. | ||||
* | avio: add avio_open2, taking an interrupt callback and options | Martin Storsjö | 2011-11-13 | 1 | -1/+38 |
| | | | | | | | | | | | The interrupt callback has to be passed in during opening (setting it after opening isn't enough), since a blocking open couldn't be interrupted otherwise. Options are passed down to procotols and also need to be available during open() in most cases. Signed-off-by: Anton Khirnov <anton@khirnov.net> | ||||
* | avio: add support for passing options to protocols. | Anton Khirnov | 2011-11-13 | 1 | -1/+1 |
| | | | | | Not used anywhere yet, support for passing options from avio_open() will follow. | ||||
* | avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc | Martin Storsjö | 2011-11-13 | 1 | -1/+1 |
| | | | | | Change all uses of these function to pass the relevant callback on. | ||||
* | Remove some stray unnecessary ffmpeg references. | Diego Biurrun | 2011-11-02 | 1 | -1/+1 |
| | |||||
* | avio: Check for invalid buffer length. | Alex Converse | 2011-10-16 | 1 | -2/+5 |
| | |||||
* | avio: don't replicate avio_alloc_context functionality. | Anton Khirnov | 2011-07-15 | 1 | -10/+3 |
| | |||||
* | avio: check AVIOContext malloc failure | Can Wu | 2011-05-21 | 1 | -0/+2 |
| | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net> | ||||
* | avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols | Stefano Sabatini | 2011-04-19 | 1 | -6/+6 |
| | | | | | | | | 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. | ||||
* | lavf: remove FF_API_URL_RESETBUF cruft | Anton Khirnov | 2011-04-19 | 1 | -11/+0 |
| | |||||
* | avio: undeprecate av_url_read_fseek/fpause under nicer names | Anton Khirnov | 2011-04-12 | 1 | -4/+4 |
| | | | | It seems their replacements won't be ready anytime soon. | ||||
* | avio: AVIO_ prefixes for URL_ open flags. | Anton Khirnov | 2011-04-07 | 1 | -7/+7 |
| | |||||
* | avio: always compile dyn_buf functions | Anton Khirnov | 2011-04-05 | 1 | -4/+0 |
| | | | | | | Fixes build with --disable-muxers --disable-network. Thanks to Hendrik Leppkes for noticing. | ||||
* | avio: deprecate url_max_packet_size(). | Anton Khirnov | 2011-04-04 | 1 | -1/+1 |
| | | | | URLContext.max_packet_size should be used directly. | ||||
* | avio: make url_close() internal. | Anton Khirnov | 2011-04-04 | 1 | -2/+2 |
| | |||||
* | avio: make url_seek() internal. | Anton Khirnov | 2011-04-04 | 1 | -1/+1 |
| | |||||
* | avio: make url_write() internal. | Anton Khirnov | 2011-04-04 | 1 | -1/+1 |
| | |||||
* | avio: make url_read() internal. | Anton Khirnov | 2011-04-04 | 1 | -1/+1 |
| | |||||
* | avio: make url_open() internal. | Anton Khirnov | 2011-04-04 | 1 | -1/+2 |
| | |||||
* | avio: simplify url_open_dyn_buf_internal by using avio_alloc_context() | Anton Khirnov | 2011-04-03 | 1 | -14/+6 |
| | |||||
* | avio: make url_fdopen internal. | Anton Khirnov | 2011-04-03 | 1 | -2/+6 |
| | | | | | The unbuffered URLContext API will be made private, so there's no point in this function being public. | ||||
* | avio: make url_open_dyn_packet_buf internal. | Anton Khirnov | 2011-04-03 | 1 | -1/+5 |
| | | | | | | | It doesn't look fit to be a part of the public API. Adding a temporary hack to ffserver to be able to use it, should be cleaned up when somebody is up for it. | ||||
* | avio: avio_ prefix for url_close_dyn_buf | Anton Khirnov | 2011-04-03 | 1 | -2/+6 |
| | |||||
* | avio: avio_ prefix for url_open_dyn_buf | Anton Khirnov | 2011-04-03 | 1 | -2/+6 |
| | |||||
* | avio: introduce an AVIOContext.seekable field | Anton Khirnov | 2011-04-03 | 1 | -1/+7 |
| | | | | Use it instead of url_is_streamed and AVIOContext.is_streamed. | ||||
* | avio: make get_checksum() internal. | Anton Khirnov | 2011-03-30 | 1 | -1/+5 |
| | |||||
* | avio: make init_checksum() internal. | Anton Khirnov | 2011-03-30 | 1 | -1/+7 |
| | |||||
* | avio: make av_url_read_fseek/fpause internal. | Anton Khirnov | 2011-03-21 | 1 | -3/+12 |
| | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | avio: deprecate url_fileno | Anton Khirnov | 2011-03-20 | 1 | -0/+2 |
| | | | | | | | | It's an evil hack that assumes an AVIOContext is always based on top of an URLContext. It's also not used anywhere. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | Replace FFmpeg with Libav in licence headers | Mans Rullgard | 2011-03-19 | 1 | -4/+4 |
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | avio: rename put_flush_packet -> avio_flush | Anton Khirnov | 2011-03-16 | 1 | -3/+7 |
| | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | avio: deprecate url_close_buf | Anton Khirnov | 2011-03-16 | 1 | -1/+1 |
| | | | | | | It's not used anywhere and its return value looks broken. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | avio: deprecate url_open_buf | Anton Khirnov | 2011-03-16 | 1 | -0/+2 |
| | | | | | | | It's only used in one place and does the same thing as avio_alloc_context. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | avio: always compile avio_printf, rather than on CONFIG_MUXERS | Anton Khirnov | 2011-03-16 | 1 | -2/+0 |
| | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | avio: avio_ prefix for url_fprintf | Anton Khirnov | 2011-03-16 | 1 | -1/+13 |
| | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | avio: make url_setbufsize internal. | Anton Khirnov | 2011-03-16 | 1 | -2/+6 |
| | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | lavf: move ff_get_v from avio.h to avio_internal.h | Anton Khirnov | 2011-03-16 | 1 | -1/+1 |
| | | | | | | And rename it to ffio_read_varlen. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | avio: deprecate url_ferror | Anton Khirnov | 2011-03-15 | 1 | -3/+3 |
| | | | | | | AVIOContext.error should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> | ||||
* | avio: deprecate url_feof | Anton Khirnov | 2011-03-07 | 1 | -4/+6 |
| | | | | | | AVIOContext.eof_reached should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> |