Replace FFmpeg with Libav in licence headers
Signed-off-by: Mans Rullgard <email@example.com>
avio: rename put_flush_packet -> avio_flush
Signed-off-by: Ronald S. Bultje <firstname.lastname@example.org>
avio: deprecate url_close_buf
It's not used anywhere and its return value looks broken.
avio: deprecate url_open_buf
It's only used in one place and does the same thing asavio_alloc_context.
avio: always compile avio_printf, rather than on CONFIG_MUXERS
avio: avio_ prefix for url_fprintf
avio: make url_setbufsize internal.
lavf: move ff_get_v from avio.h to avio_internal.h
And rename it to ffio_read_varlen.
avio: deprecate url_ferror
AVIOContext.error should be used directly instead.
avio: deprecate url_feof
AVIOContext.eof_reached should be used directly instead.
avio: move ff_rewind_with_probe_data from avio.h to avio_internal.h
also change its prefix to ffio
avio: deprecate url_fget_max_packet_size
AVIOContext.max_packet_size should be used directly instead.
avio: avio_ prefix for url_fsize
avio: deprecate url_fgetc and remove all it uses
avio: deprecate url_fgets
It's not used anywhere and doesn't look ver useful to be public.
avio: add avio_tell macro as a replacement for url_ftell
lavf: deprecate get_strz() in favor of avio_get_str
avio: add avio_get_str()
aviobuf: Write new data at s->buf_end in fill_buffer
In most cases, s->buf_ptr will be equal to s->buf_end whenfill_buffer is called, but this may not always be the case, ifwe're seeking forward by reading (permitted by the short seekthreshold).
If fill_buffer is writing to s->buf_ptr instead of s->buf_end (when...
avio: deprecate url_fskip
avio_seek should be used instead
avio: avio_ prefix for url_fseek
avio: deprecate put_tag
it's not used internally anymore and shouldn't be public.
avio: rename url_fopen/fclose -> avio_open/close.
avio: make put_nbyte internal.
avio: avio: avio_ prefixes for put_* functions
In the name of consistency:put_byte -> avio_w8put_<type> -> avio_w<type>put_buffer -> avio_write
put_nbyte will be made privateput_tag will be merged with avio_put_str
avio: make get_partial_buffer internal.
avio: avio_ prefixes for get_* functions
In the name of consistency:get_byte -> avio_r8get_<type> -> avio_r<type>get_buffer -> avio_read
get_partial_buffer will be made private later
get_strz is left out becase I want to change it later to return...
avio: rename av_alloc_put_byte -> avio_alloc_context for consistency
avio: move init_put_byte() to a new private header and rename it
init_put_byte should never be used outside of lavf, sincesizeof(AVIOContext) isn't part of public ABI.
avio: rename ByteIOContext to AVIOContext.
lavf: make a variant of ff_get_str16_nolen public
It will be useful in mp3 demuxer and hopeful some other places.
Signed-off-by: Janne Grunau <email@example.com>
lavf: move ff_put_str16_nolen from asf to avio and rename it
It will be useful in the mp3 muxer.
avio: add av_put_str and deprecate put_strz in favor of it
Revert aviobuf: Retry if the read/write function returns AVERROR
This reverts SVN commit 26318, which broke MS-RTSP playback.
Originally committed as revision 26326 to svn://svn.ffmpeg.org/ffmpeg/trunk
aviobuf: Retry if the read/write function returns AVERROR
Originally committed as revision 26318 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add function put_nbyte() to speed up padding in SPDIF muxer.
Patch by Anssi Hannula, anssi d hannula a iki d fi
Originally committed as revision 26193 to svn://svn.ffmpeg.org/ffmpeg/trunk
add FF_API_URL_RESETBUF define to disable the deprecated url_resetbuf()public function
Originally committed as revision 24841 to svn://svn.ffmpeg.org/ffmpeg/trunk
Cosmetics: fix indentation and remove a useless else.
Originally committed as revision 24495 to svn://svn.ffmpeg.org/ffmpeg/trunk
Simplify get_byte and url_fgetc.
Originally committed as revision 24494 to svn://svn.ffmpeg.org/ffmpeg/trunk
Never shrink the ByteIOContext buffer in ff_rewind_with_probe_data
If there is little unread data in the ByteIOContext buffer, this may leadto reducing the size of the ByteIOContext buffer to little more the probedata size. This can lead to suboptimal aviobuf behaviour, e.g. making some...
improve ff_get_line to return line length
Originally committed as revision 24400 to svn://svn.ffmpeg.org/ffmpeg/trunk
move ff_get_line to aviobuf.c
Originally committed as revision 24399 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove an assert that was no longer correct nor relevant
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 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 failed
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.c
patch by Micheal Chinen < mchinen gmail >
Originally committed as revision 24140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Silence a warning when compiling aviobuf.c
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_buf
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 directlyreturn AVERROR 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 rather than AVERROR ifthe 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.
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 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 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()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 if endof 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 seekby any means.
Originally committed as revision 22557 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove duplicated empty line.
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 nextversion 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 initialization
Originally committed as revision 20214 to svn://svn.ffmpeg.org/ffmpeg/trunk
Simplify: use FFMIN
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 asappropriate if it couldn't read any data at all.This should make handling of EOF and error simpler or make it work right withoutextra 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 memory ByteIOContext
Originally committed as revision 18487 to svn://svn.ffmpeg.org/ffmpeg/trunk
Merge declaration and initialization of io_buffer_size
Originally committed as revision 16639 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make io_buffer_size unsigned to avoid a warning about comparingsigned and unsigned values.
Originally committed as revision 16638 to svn://svn.ffmpeg.org/ffmpeg/trunk
Return AVERROR instead of -1 when malloc fails in url_open_dyn_buf_internal
Originally committed as revision 16636 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use AV_WB32 instead of reimplementing it.
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.
Originally committed as revision 16634 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace nonsense -1234 return value in dyn_buf_write by proper AVERROR
Originally committed as revision 16633 to svn://svn.ffmpeg.org/ffmpeg/trunk
Change semantic of CONFIG_*, HAVE_* and ARCH_*.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().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
Originally committed as revision 16100 to svn://svn.ffmpeg.org/ffmpeg/trunk
always use the whole buffer for reading w/ packetized sources to avoid packet truncation
Originally committed as revision 15799 to svn://svn.ffmpeg.org/ffmpeg/trunk
Append read data onto the buffer instead of overwriting, this ensuresthat 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 thecheck 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.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.
Originally committed as revision 14491 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
improve CRC API - 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.The name is in analogy to init_put_byte, but I would not mind itbeing 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.
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 unneeded avio wrapper functions.
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 mode
Originally committed as revision 11233 to svn://svn.ffmpeg.org/ffmpeg/trunk
Extend ByteIOContext and add the buffered IO functions: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 AVFormatContext
patch by: Björn Axelsson, bjorn d axelsson a intinor d sethread: [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()
Originally committed as revision 10912 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make get_v() available to the other demuxers
Originally committed as revision 10911 to svn://svn.ffmpeg.org/ffmpeg/trunk
rename av_crc04C11DB7_update to ff_crc04C11DB7_update and move it to 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.Patch by Björn Axelsson bjorn axelsson intinor seOriginal thread: [FFmpeg-devel] [PATCH] MMS protocol support patch 1Date: 09/19/2007 05:51 PM
Originally committed as revision 10709 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 10589 to svn://svn.ffmpeg.org/ffmpeg/trunk
Check read_packet before using it.
Originally committed as revision 10588 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
cosmetics: fix indentation
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,these comments can be extracted by Doxygen by only accessing the installedheaders.
Originally committed as revision 8258 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....
Fix misbehaviour in url_fseek() when seeking fails.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:...
proper error handling in file size retrieval, patch by Ronald S. Bultje rbultje at ronald bitfreak net
Originally committed as revision 7736 to svn://svn.ffmpeg.org/ffmpeg/trunk
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
put_*() are not only useful to muxers and protocolfix compilation of matroska demuxer with --disable-muxers --disable-protocols
Originally committed as revision 7323 to svn://svn.ffmpeg.org/ffmpeg/trunk