Statistics
| Branch: | Revision:

ffmpeg / libavformat / avio.h @ 655e45e7

History | View | Annotate | Download (24.4 KB)

# Date Author Comment
655e45e7 03/07/2011 03:19 PM Anton Khirnov

avio: deprecate url_fgets

It's not used anywhere and doesn't look ver useful to be public.

Signed-off-by: Ronald S. Bultje <>

2af07d36 03/07/2011 03:19 PM Peter Ross

avio: add avio_skip macro

This is a substitute for the url_fskip function that was deprecated by
commit 0300db8ad778a194b4a8ec98f6da3de5b41c46ee. avio_fskip is provided to
improve demuxer code readability. It distinguishes the act of skipping over
unknown or irrelevant bytes from the standard avio_seek operation....

8f73c060 03/06/2011 10:29 PM Martin Storsjö

URLProtocol: Add URL_PROTOCOL_FLAG_NESTED_SCHEME

If this flag is set, the protocol can handle URLs where the
scheme is a nested scheme such as applehttp+file: - the protocol
can handle any URL where the first segment of the nested scheme
belongs to this protocol....

f3bea991 03/06/2011 10:29 PM Martin Storsjö

URLProtocol: Add a flags field

Signed-off-by: Luca Barbato <>

a2704c97 03/04/2011 04:26 PM Anton Khirnov

avio: add avio_tell macro as a replacement for url_ftell

Signed-off-by: Ronald S. Bultje <>

e16ead07 03/04/2011 04:26 PM Anton Khirnov

lavf: deprecate get_strz() in favor of avio_get_str

Signed-off-by: Ronald S. Bultje <>

41d8555f 03/04/2011 04:24 PM Reimar Döffinger

avio: add avio_get_str()

Signed-off-by: Ronald S. Bultje <>

0300db8a 03/01/2011 05:27 PM Anton Khirnov

avio: deprecate url_fskip

avio_seek should be used instead

Signed-off-by: Ronald S. Bultje <>

6b4aa5da 03/01/2011 05:12 PM Anton Khirnov

avio: avio_ prefix for url_fseek

Signed-off-by: Ronald S. Bultje <>

61840b43 02/25/2011 07:38 PM Anton Khirnov

avio: deprecate put_tag

it's not used internally anymore and shouldn't be public.

Signed-off-by: Ronald S. Bultje <>

22a3212e 02/23/2011 03:18 PM Anton Khirnov

avio: rename url_fopen/fclose -> avio_open/close.

Signed-off-by: Ronald S. Bultje <>

0ac8e2bf 02/21/2011 07:25 PM Anton Khirnov

avio: make put_nbyte internal.

Signed-off-by: Ronald S. Bultje <>

77eb5504 02/21/2011 07:25 PM Anton Khirnov

avio: avio: avio_ prefixes for put_* functions

In the name of consistency:
put_byte -> avio_w8
put_<type> -> avio_w<type>
put_buffer -> avio_write

put_nbyte will be made private
put_tag will be merged with avio_put_str

Signed-off-by: Ronald S. Bultje <>

b3db9cee 02/21/2011 06:40 PM Anton Khirnov

avio: make get_partial_buffer internal.

Signed-off-by: Ronald S. Bultje <>

b7effd4e 02/21/2011 04:23 PM Anton Khirnov

avio: avio_ prefixes for get_* functions

In the name of consistency:
get_byte -> avio_r8
get_<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...

8d9ac969 02/21/2011 03:23 PM Anton Khirnov

avio: rename av_alloc_put_byte -> avio_alloc_context for consistency

Signed-off-by: Ronald S. Bultje <>

e731b8d8 02/20/2011 01:37 PM Anton Khirnov

avio: move init_put_byte() to a new private header and rename it

init_put_byte should never be used outside of lavf, since
sizeof(AVIOContext) isn't part of public ABI.

Signed-off-by: Ronald S. Bultje <>

ae628ec1 02/20/2011 01:37 PM Anton Khirnov

avio: rename ByteIOContext to AVIOContext.

Signed-off-by: Ronald S. Bultje <>

90441276 02/06/2011 01:29 AM Nicolas George

Non-blocking protocol: core wrapper functions

Signed-off-by: Nicolas George <>
Signed-off-by: Ronald S. Bultje <>

fe174fc8 02/06/2011 01:28 AM Nicolas George

Non-blocking protocols: flag and documentation

Signed-off-by: Nicolas George <>
Signed-off-by: Ronald S. Bultje <>

93b78d12 01/25/2011 08:48 PM Anton Khirnov

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 <>

dccbd97d 01/21/2011 08:21 PM Anton Khirnov

lavf: move ff_put_str16_nolen from asf to avio and rename it

It will be useful in the mp3 muxer.

Signed-off-by: Mans Rullgard <>

4efd5cf3 01/21/2011 08:21 PM Anton Khirnov

avio: add av_put_str and deprecate put_strz in favor of it

Signed-off-by: Mans Rullgard <>

50196a98 01/21/2011 07:30 PM Anton Khirnov

lavf: move the version macros to a new header

Signed-off-by: Mans Rullgard <>

17ee8f66 01/02/2011 10:45 AM Anssi Hannula

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

267ff3ae 10/31/2010 04:11 PM Stefano Sabatini

Document url_write().

Originally committed as revision 25613 to svn://svn.ffmpeg.org/ffmpeg/trunk

a178edf2 10/23/2010 04:21 PM Aurelien Jacobs

drop rtp_get_file_handles() which is not part of public API and not used anymore

Originally committed as revision 25556 to svn://svn.ffmpeg.org/ffmpeg/trunk

8ef30ac1 10/15/2010 12:49 PM Aurelien Jacobs

add FF_API_UDP_GET_FILE define to disable the deprecated udp_get_file_handle()
public function

Originally committed as revision 25481 to svn://svn.ffmpeg.org/ffmpeg/trunk

85c15960 10/06/2010 06:42 PM Stefano Sabatini

Move the definitions of AVSEEK_SIZE to make it appear before the
description of url_seek(), which references it.

Originally committed as revision 25376 to svn://svn.ffmpeg.org/ffmpeg/trunk

8bf256bc 10/02/2010 09:16 AM Stefano Sabatini

Document url_get_filename().

Originally committed as revision 25310 to svn://svn.ffmpeg.org/ffmpeg/trunk

f3f5eb6e 09/30/2010 10:55 AM Stefano Sabatini

Document url_filesize().

Originally committed as revision 25268 to svn://svn.ffmpeg.org/ffmpeg/trunk

364cacc7 08/19/2010 09:28 PM Aurelien Jacobs

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

838b27b4 08/19/2010 09:21 PM Aurelien Jacobs

add FF_API_REGISTER_PROTOCOL define to disable the deprecated
register_protocol() function

Originally committed as revision 24840 to svn://svn.ffmpeg.org/ffmpeg/trunk

404eba44 08/19/2010 04:49 PM Aurelien Jacobs

add FF_API_URL_CLASS define to enable usage of URLContext as a AVClass

Originally committed as revision 24835 to svn://svn.ffmpeg.org/ffmpeg/trunk

d5e9ddeb 07/16/2010 11:20 PM Martin Storsjö

url_fskip: Return an error code if the url_fseek failed

Originally committed as revision 24277 to svn://svn.ffmpeg.org/ffmpeg/trunk

de1807bb 07/01/2010 08:15 PM Josh Allmann

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

49bd8e4b 06/30/2010 03:38 PM Måns Rullgård

Fix grammar errors in documentation

Originally committed as revision 23904 to svn://svn.ffmpeg.org/ffmpeg/trunk

ed8d5766 06/23/2010 11:26 AM Martin Storsjö

Add all required includes to avio.h

Originally committed as revision 23734 to svn://svn.ffmpeg.org/ffmpeg/trunk

735cf6b2 06/22/2010 02:09 PM Martin Storsjö

Add priv_data_size and priv_data_class to URLProtocol

This allows url_alloc to allocate and initialize the priv_data.

Originally committed as revision 23706 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffbb289a 06/22/2010 02:03 PM Martin Storsjö

Split url_open and url_open_protocol into url_alloc and url_connect

Originally committed as revision 23704 to svn://svn.ffmpeg.org/ffmpeg/trunk

9b07a2dc 06/22/2010 01:58 PM Martin Storsjö

Add an av_register_protocol2 function that takes a size parameter

This allows extending the URLProtocol struct without breaking binary
compatibility with code compiled with older definitions of the struct.

Originally committed as revision 23702 to svn://svn.ffmpeg.org/ffmpeg/trunk

27241cbf 06/01/2010 07:46 AM Martin Storsjö

Declare the url_write buffer parameter as const

Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba87f080 04/20/2010 02:45 PM Diego Biurrun

Remove explicit filename from Doxygen @file commands.

Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.

Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk

01d91b9b 04/08/2010 09:02 AM Tomas Härdin

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

32e543f8 03/30/2010 03:50 PM Benoit Fouet

Replace @returns by @return.

Originally committed as revision 22729 to svn://svn.ffmpeg.org/ffmpeg/trunk

8a36b59b 03/29/2010 10:29 PM Stefano Sabatini

Document url_exist().

Originally committed as revision 22725 to svn://svn.ffmpeg.org/ffmpeg/trunk

9bee2459 03/28/2010 10:31 AM Stefano Sabatini

Document url_seek().

Originally committed as revision 22709 to svn://svn.ffmpeg.org/ffmpeg/trunk

493f54ad 03/15/2010 10:54 PM Michael Niedermayer

Add AVSEEK_FORCE flag to indicate that the code should attempt to seek
by any means.

Originally committed as revision 22557 to svn://svn.ffmpeg.org/ffmpeg/trunk

fe4fbb58 02/09/2010 06:59 PM Stefano Sabatini

Doxument url_fopen().

Originally committed as revision 21714 to svn://svn.ffmpeg.org/ffmpeg/trunk

4e38c094 02/05/2010 11:03 PM Stefano Sabatini

Doxument url_fdopen().

Originally committed as revision 21647 to svn://svn.ffmpeg.org/ffmpeg/trunk

d19a046e 01/27/2010 12:21 AM Stefano Sabatini

Document av_register_protocol(), not that it really needs to be
documented but it's nice to have everything documented.

Originally committed as revision 21471 to svn://svn.ffmpeg.org/ffmpeg/trunk

b0634fd1 01/24/2010 10:07 PM Stefano Sabatini

Doxument url_open().

Originally committed as revision 21437 to svn://svn.ffmpeg.org/ffmpeg/trunk

725b3da9 01/24/2010 06:18 PM Stefano Sabatini

Favor the term "URL" over "filename", as the API deals with URLs
rather than with simple filenames.

Originally committed as revision 21429 to svn://svn.ffmpeg.org/ffmpeg/trunk

f1f78a9d 01/24/2010 04:33 PM Stefano Sabatini

Doxument url_close().

Originally committed as revision 21420 to svn://svn.ffmpeg.org/ffmpeg/trunk

333146dd 01/24/2010 01:31 PM Stefano Sabatini

Doxument url_open_protocol().

Originally committed as revision 21417 to svn://svn.ffmpeg.org/ffmpeg/trunk

1f8ad15a 01/24/2010 01:07 PM Stefano Sabatini

Doxument url_read().

Originally committed as revision 21415 to svn://svn.ffmpeg.org/ffmpeg/trunk

ddb901b7 01/23/2010 10:23 AM Reimar Döffinger

Make url_read_complete retry on EAGAIN and return how much data it read
if it reached EOF, making it useful in more cases.

Originally committed as revision 21393 to svn://svn.ffmpeg.org/ffmpeg/trunk

08580cb0 10/20/2009 06:40 AM Benoit Fouet

Make url_resetbuf() assert on wrong flags passed and make it static on next
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

0e848977 06/04/2009 06:25 AM Kostya Shishkov

Move function for reading whole specified amount of data from RTSP
demuxer into more common place.

Originally committed as revision 19087 to svn://svn.ffmpeg.org/ffmpeg/trunk

597b4b3f 05/25/2009 10:17 PM Stefano Sabatini

Define struct URLContext and typedef it to URLContext in one step.

Originally committed as revision 18948 to svn://svn.ffmpeg.org/ffmpeg/trunk

f0a80394 03/03/2009 05:04 PM Ronald S. Bultje

Add url_get_file_handle(), which is used to get the file descriptor
associated with the I/O handle (e.g. the fd returned by open()). See
"[RFC] rtsp.c EOF support" thread.

There were previously some URI-specific implementations of the same idea,
e.g. rtp_get_file_handles() and udp_get_file_handle(). All of these are...

3f4c2bf9 02/26/2009 10:34 PM Stefano Sabatini

Mark as "internal but installed" the avio.h file.

This should prevent its direct inclusion in an external project, which
results broken if avformat.h is not included before.

Originally committed as revision 17626 to svn://svn.ffmpeg.org/ffmpeg/trunk

aafe9b63 02/26/2009 10:28 PM Stefano Sabatini

Add a @file notice to avio.h.

Originally committed as revision 17625 to svn://svn.ffmpeg.org/ffmpeg/trunk

30f68128 02/17/2009 09:43 PM Diego Biurrun

Add missing #includes to fix 'make checkheaders'.

Originally committed as revision 17398 to svn://svn.ffmpeg.org/ffmpeg/trunk

c1b02101 02/15/2009 08:45 PM Stefano Sabatini

Improve grammar: "X next after Y" -> "next X after Y".

Originally committed as revision 17347 to svn://svn.ffmpeg.org/ffmpeg/trunk

d1037c12 02/15/2009 02:34 PM Stefano Sabatini

Do not export to the public the first_protocol symbol at the next
major bump.
There is no need for that, since av_protocol_next() already provides
access to the first registered protocol.

Originally committed as revision 17326 to svn://svn.ffmpeg.org/ffmpeg/trunk

9075d1e0 02/15/2009 02:31 PM Stefano Sabatini

Document av_protocol_next().

Originally committed as revision 17324 to svn://svn.ffmpeg.org/ffmpeg/trunk

65c40e4e 02/15/2009 02:25 PM Stefano Sabatini

Rename register_protocol() to av_register_protocol() and deprecate
register_protocol().

Originally committed as revision 17322 to svn://svn.ffmpeg.org/ffmpeg/trunk

7f37f568 12/13/2008 01:39 PM Diego Biurrun

whitespace cosmetics

Originally committed as revision 16100 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc5c918e 10/03/2008 10:16 AM Diego Biurrun

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

98790382 08/31/2008 07:39 AM Stefano Sabatini

Globally rename the header inclusion guard names.

Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.' to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_"....

ba99cfc2 08/19/2008 11:44 PM Ronald S. Bultje

Implement url_open_protocol(), which is basiclly the former url_open()
but which opens a URLProtocol instead of a filename. url_open() is
reimplemented to call url_open_protocol(). See discussion on
"url_open_protocol" on ffmpeg-devel.

Originally committed as revision 14857 to svn://svn.ffmpeg.org/ffmpeg/trunk

4477dedc 03/31/2008 05:31 PM Diego Biurrun

minor typo fixes

Originally committed as revision 12658 to svn://svn.ffmpeg.org/ffmpeg/trunk

57ecf8d2 03/22/2008 05:25 PM Michael Niedermayer

1st attempt at correcting the punktuation.

Originally committed as revision 12555 to svn://svn.ffmpeg.org/ffmpeg/trunk

4edfcecc 03/21/2008 10:17 PM Michael Niedermayer

Document get_*_buffer()

Originally committed as revision 12548 to svn://svn.ffmpeg.org/ffmpeg/trunk

67e21020 03/21/2008 11:27 AM Michael Niedermayer

Document a few url_* functions.

Originally committed as revision 12537 to svn://svn.ffmpeg.org/ffmpeg/trunk

5acef35f 03/10/2008 07:03 PM Björn Axelsson

Add AVClass to URLContext at next major version bump

Patch by Björn Axelsson (bjorn axelsson intinor se)

Originally committed as revision 12411 to svn://svn.ffmpeg.org/ffmpeg/trunk

1e0f3468 12/22/2007 04:18 PM Reimar Döffinger

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

00ef4f58 12/21/2007 11:51 AM Diego Biurrun

Fix Doxygen function parameter name.

Originally committed as revision 11295 to svn://svn.ffmpeg.org/ffmpeg/trunk

8bfb108b 12/21/2007 11:50 AM Diego Biurrun

comment typo fixes

Originally committed as revision 11294 to svn://svn.ffmpeg.org/ffmpeg/trunk

91fd7398 12/21/2007 12:22 AM Ivo van Poorten

typo ;)

Originally committed as revision 11287 to svn://svn.ffmpeg.org/ffmpeg/trunk

1308f273 12/20/2007 10:33 PM Michael Niedermayer

Document ByteIOContext and URLContext change rules.

Originally committed as revision 11286 to svn://svn.ffmpeg.org/ffmpeg/trunk

b075e520 12/19/2007 09:11 PM Michael Niedermayer

Make recently added and still unused read_seek functions return offset_t.

Originally committed as revision 11274 to svn://svn.ffmpeg.org/ffmpeg/trunk

502bdf68 12/19/2007 08:57 PM Michael Niedermayer

Merge recently added and still unused play and pause functions.

Originally committed as revision 11273 to svn://svn.ffmpeg.org/ffmpeg/trunk

2e9b86ac 12/19/2007 11:31 AM Michael Niedermayer

Remove dead code which disappeared with the last major version bump.

Originally committed as revision 11268 to svn://svn.ffmpeg.org/ffmpeg/trunk

84be6e72 12/12/2007 07:01 PM Michael Niedermayer

av_*_next() API for libavformat

Originally committed as revision 11206 to svn://svn.ffmpeg.org/ffmpeg/trunk

e7e4810a 11/28/2007 07:46 PM Björn Axelsson

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

536333a0 11/24/2007 07:09 AM Björn Axelsson

Extend URLProtocol with new function pointers and api functions for
av_url_read_play(), av_url_read_pause() and av_url_read_seek().

patch by: Björn Axelsson, bjorn d axelsson a intinor d se

Originally committed as revision 11086 to svn://svn.ffmpeg.org/ffmpeg/trunk

899681cd 11/21/2007 07:41 AM Björn Axelsson

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

e8b7c70f 11/15/2007 11:44 AM Panagiotis Issaris

Fix Doxygen parameter name

Originally committed as revision 11032 to svn://svn.ffmpeg.org/ffmpeg/trunk

abfe87d4 11/15/2007 11:43 AM Panagiotis Issaris

Fix Doxygen parameter name

Originally committed as revision 11031 to svn://svn.ffmpeg.org/ffmpeg/trunk

7798b42d 11/03/2007 06:29 PM Kostya Shishkov

Add ff_ prefix to get_v()

Originally committed as revision 10912 to svn://svn.ffmpeg.org/ffmpeg/trunk

897d3eef 11/03/2007 06:26 PM Kostya Shishkov

Make get_v() available to the other demuxers

Originally committed as revision 10911 to svn://svn.ffmpeg.org/ffmpeg/trunk

992e78f5 10/30/2007 12:01 AM Baptiste Coudurier

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

5b21bdab 10/17/2007 09:37 AM Diego Biurrun

Add FFMPEG_ prefix to all multiple inclusion guards.

Originally committed as revision 10765 to svn://svn.ffmpeg.org/ffmpeg/trunk

770d9daf 10/11/2007 02:57 PM Björn Axelsson

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

3576f9c6 09/28/2007 03:12 PM Björn Axelsson

Documentation fix for url_f(d)open()
Patch by Björn Axelsson bjorn axelsson intinor se

Originally committed as revision 10608 to svn://svn.ffmpeg.org/ffmpeg/trunk

dde1f928 09/10/2007 06:11 PM Aurelien Jacobs

*_protocol are not part of public API

Originally committed as revision 10472 to svn://svn.ffmpeg.org/ffmpeg/trunk

99545457 06/16/2007 10:59 PM Måns Rullgård

include all prerequisites in header files

Originally committed as revision 9344 to svn://svn.ffmpeg.org/ffmpeg/trunk

90b5b51e 06/12/2007 06:50 PM Diego Biurrun

misc typo fixes

Originally committed as revision 9291 to svn://svn.ffmpeg.org/ffmpeg/trunk