| Branch: | Revision:

ffmpeg / libavformat / avio.h @ e16ead07

History | View | Annotate | Download (24 KB)

# Date Author Comment
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://

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

Document url_write().

Originally committed as revision 25613 to svn://

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

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

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

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

Document url_get_filename().

Originally committed as revision 25310 to svn://

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

Document url_filesize().

Originally committed as revision 25268 to svn://

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

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

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

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

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

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

Fix grammar errors in documentation

Originally committed as revision 23904 to svn://

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

Add all required includes to avio.h

Originally committed as revision 23734 to svn://

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

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

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

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

Declare the url_write buffer parameter as const

Originally committed as revision 23401 to svn://

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

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

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

Replace @returns by @return.

Originally committed as revision 22729 to svn://

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

Document url_exist().

Originally committed as revision 22725 to svn://

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

Document url_seek().

Originally committed as revision 22709 to svn://

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

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

Doxument url_fopen().

Originally committed as revision 21714 to svn://

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

Doxument url_fdopen().

Originally committed as revision 21647 to svn://

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

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

Doxument url_open().

Originally committed as revision 21437 to svn://

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

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

Doxument url_close().

Originally committed as revision 21420 to svn://

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

Doxument url_open_protocol().

Originally committed as revision 21417 to svn://

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

Doxument url_read().

Originally committed as revision 21415 to svn://

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

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

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

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

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

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

Add a @file notice to avio.h.

Originally committed as revision 17625 to svn://

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

Add missing #includes to fix 'make checkheaders'.

Originally committed as revision 17398 to svn://

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

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

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

Document av_protocol_next().

Originally committed as revision 17324 to svn://

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

Rename register_protocol() to av_register_protocol() and deprecate

Originally committed as revision 17322 to svn://

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

whitespace cosmetics

Originally committed as revision 16100 to svn://

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

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

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

minor typo fixes

Originally committed as revision 12658 to svn://

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

1st attempt at correcting the punktuation.

Originally committed as revision 12555 to svn://

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

Document get_*_buffer()

Originally committed as revision 12548 to svn://

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

Document a few url_* functions.

Originally committed as revision 12537 to svn://

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

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

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

Fix Doxygen function parameter name.

Originally committed as revision 11295 to svn://

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

comment typo fixes

Originally committed as revision 11294 to svn://

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

typo ;)

Originally committed as revision 11287 to svn://

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

Document ByteIOContext and URLContext change rules.

Originally committed as revision 11286 to svn://

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

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

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

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

av_*_next() API for libavformat

Originally committed as revision 11206 to svn://

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

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

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

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

Fix Doxygen parameter name

Originally committed as revision 11032 to svn://

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

Fix Doxygen parameter name

Originally committed as revision 11031 to svn://

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

Add ff_ prefix to get_v()

Originally committed as revision 10912 to svn://

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

Make get_v() available to the other demuxers

Originally committed as revision 10911 to svn://

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

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

Add FFMPEG_ prefix to all multiple inclusion guards.

Originally committed as revision 10765 to svn://

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

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

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

*_protocol are not part of public API

Originally committed as revision 10472 to svn://

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

include all prerequisites in header files

Originally committed as revision 9344 to svn://

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

misc typo fixes

Originally committed as revision 9291 to svn://

c3316802 03/05/2007 03:18 PM Panagiotis Issaris

Convert all the comment sections into Doxygen compatible comments, same for
warning and notes.

Originally committed as revision 8261 to svn://

c306748c 03/05/2007 02:26 PM Panagiotis Issaris

Move avio.h's url_get_max_packet_size() comment from source to header file.
Remove the comment section of url_set_interrupt_cb() which was a duplicate as it
appeared identically in both the header and the source file.

Originally committed as revision 8259 to svn://

a8c5ab27 03/05/2007 01:55 PM Panagiotis Issaris

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

Originally committed as revision 8258 to svn://

8fa36ae0 02/13/2007 06:26 PM François Revol

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

62181004 01/14/2007 10:07 PM Ronald S. Bultje

makes the filename member of the URLContext a pointer, so that the
structure can be extended in the future without breaking ABI.
patch by Ronald S. Bultje % rbultje A ronald P bitfreak P net %
Original thread:
Date: Jan 1, 2007 6:01 PM
Subject: [Ffmpeg-devel] make URLContext->filename a pointer...