Reimar Döffinger
0c5a43d648
Merge declaration and initialization of io_buffer_size
...
Originally committed as revision 16639 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
2bdaf78c52
Make io_buffer_size unsigned to avoid a warning about comparing
...
signed and unsigned values.
Originally committed as revision 16638 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
0e7ceb2442
Return AVERROR(ENOMEM) instead of -1 when malloc fails in url_open_dyn_buf_internal
...
Originally committed as revision 16636 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
aa805f94c5
Use AV_WB32 instead of reimplementing it.
...
Originally committed as revision 16635 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
dc2c2eea41
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
16 years ago
Reimar Döffinger
7ce820efa0
Replace nonsense -1234 return value in dyn_buf_write by proper AVERROR(ENOMEM)
...
Originally committed as revision 16633 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
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
16 years ago
Aurelien Jacobs
9daa4ceaa3
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
16 years ago
Diego Biurrun
7f37f5687d
whitespace cosmetics
...
Originally committed as revision 16100 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Jindřich Makovička
f5edd874fa
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
16 years ago
Michael Niedermayer
4589dc5c4d
Append read data onto the buffer instead of overwriting, this ensures
...
that the whole buffer is available for seeking back.
Fixes issue480
Originally committed as revision 15634 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Reimar Döffinger
6bc03a695b
Make size variables in dyn_buf_write unsigned so gcc will not optimize the
...
check away (due to assuming signed overflows do not happen).
Originally committed as revision 15555 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bc5c918ea8
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
16 years ago
Baptiste Coudurier
39a127bfbc
Only reset buffer state if seeking is successful; update seek reg ref.
...
Originally committed as revision 14491 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Diego Biurrun
245976da2a
Use full path for #includes from another directory.
...
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Aurelien Jacobs
3abe5fbdc4
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
17 years ago
Reimar Döffinger
1e0f346896
Add a av_alloc_put_byte function.
...
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
17 years ago
Michael Niedermayer
b075e52059
Make recently added and still unused read_seek functions return offset_t.
...
Originally committed as revision 11274 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
502bdf6893
Merge recently added and still unused play and pause functions.
...
Originally committed as revision 11273 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
004050eed7
Remove unneeded avio wrapper functions.
...
Originally committed as revision 11264 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
5cb4b82a17
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
17 years ago
Björn Axelsson
e7e4810aae
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
17 years ago
Björn Axelsson
899681cd1d
Use dynamically allocated ByteIOContext in AVFormatContext
...
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
17 years ago
Kostya Shishkov
7798b42df1
Add ff_ prefix to get_v()
...
Originally committed as revision 10912 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Kostya Shishkov
897d3eef4c
Make get_v() available to the other demuxers
...
Originally committed as revision 10911 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Baptiste Coudurier
992e78f5f2
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
17 years ago
Björn Axelsson
770d9dafa1
Add functionality to set the direction of a ByteIOContext buffer.
...
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
17 years ago
Benoit Fouet
2d89f334f4
Indentation
...
Originally committed as revision 10589 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Benoit Fouet
602dd8f6c4
Check read_packet before using it.
...
Originally committed as revision 10588 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Panagiotis Issaris
6f3e0b2174
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
...
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Alex Beregszaszi
5f09770382
cosmetics: fix indentation
...
Originally committed as revision 8998 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Panagiotis Issaris
a8c5ab2707
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 installed
headers.
Originally committed as revision 8258 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
François Revol
8fa36ae09d
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.
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
18 years ago
Ronald S. Bultje
68fcdbf1e5
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:
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
18 years ago
Ronald S. Bultje
8f42f5238e
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
18 years ago
Michael Niedermayer
1ae2c5f2e7
fix indention of previous commit
...
Originally committed as revision 7396 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
8e287af090
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
18 years ago
Aurelien Jacobs
3b61ab0b03
put_*() are not only useful to muxers and protocol
...
fix compilation of matroska demuxer with --disable-muxers --disable-protocols
Originally committed as revision 7323 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Loïc Le Loarer
8fa641f8e8
Fix compile with --disable-muxers, patch by Loïc Le Loarer, lll+ffmpeg m4x org.
...
Originally committed as revision 7185 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
942f3bb528
move memory reading ByteIOContext init from mov.c to avobuf.c
...
Originally committed as revision 6744 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
b78e7197a8
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
18 years ago
Michael Niedermayer
398f5d3f1d
support forward seeking in non seekable streams
...
Originally committed as revision 6340 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Michael Niedermayer
3b9a913db4
simplify seek() failure check
...
Originally committed as revision 6339 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Michael Niedermayer
f40d17398d
simplify url_fseek()
...
Originally committed as revision 6316 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Michael Niedermayer
ccb159940b
fix regression failure after adler simplification
...
Originally committed as revision 5803 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Aurelien Jacobs
ea395e8c6c
add a Creative VOC (de)muxer
...
Originally committed as revision 4967 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Gildas Bazin
04f46ced8c
Add --disable-protocols option to configure to disable I/O protocol from
...
libavformat. Also fix build with --disable-muxers and --disable-ffserver.
patch by Gildas Bazin < gbazin **@** altern **.** org >
Originally committed as revision 4879 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
5509bffa88
Update licensing information: The FSF changed postal address.
...
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
bb270c0896
COSMETICS: tabs --> spaces, some prettyprinting
...
Originally committed as revision 4764 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago
Diego Biurrun
115329f160
COSMETICS: Remove all trailing whitespace.
...
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago