Anton Khirnov
f35ff97f2e
lavf: use designated initializers for all protocols
...
This is more readable and makes it easier to reorder URLProtocol
members.
2011-04-08 11:08:26 +02:00
Anton Khirnov
a6aa7a1a14
applehttp: don't use deprecated url_ functions.
2011-04-08 09:18:48 +02:00
Anton Khirnov
d6bbe76124
avio: move two ff_udp_* functions from avio_internal to url.h
2011-04-08 07:08:22 +02:00
Anton Khirnov
acaceca2f1
asfdec: remove a forgotten declaration of nonexistent function
2011-04-08 07:08:12 +02:00
Anton Khirnov
026e175775
avio: deprecate the typedef for URLInterruptCB
...
There's no particular reason to pollute the namespace with a typedef for
it.
2011-04-08 07:07:58 +02:00
Luca Barbato
a2031251c7
proto: include os_support.h in network.h
...
Fix compilation on systems without poll()
2011-04-07 21:03:12 +02:00
Anton Khirnov
9181976348
matroskaenc: don't write an empty Cues element.
2011-04-07 18:11:24 +02:00
Anton Khirnov
5cec897105
avio: move extern url_interrupt_cb declaration from avio.h to url.h
2011-04-07 18:11:24 +02:00
Anton Khirnov
8e76a19b63
avio: make av_register_protocol2 internal.
2011-04-07 18:11:24 +02:00
Anton Khirnov
80c6e238b0
avio: avio_ prefix for url_set_interrupt_cb.
2011-04-07 18:11:24 +02:00
Anton Khirnov
f87b1b373a
avio: AVIO_ prefixes for URL_ open flags.
2011-04-07 18:07:16 +02:00
Luca Barbato
3d42d4937b
proto: introduce listen option in tcp
...
This way is possible to have simple micro-server act like
ffmpeg -i file.nut -vcodec copy -acodec copy -f nut tcp://foo:1234?listen
2011-04-07 02:54:30 +02:00
Luca Barbato
ebba2b3e2a
proto: factor ff_network_wait_fd and use it on udp
...
Support the URL_FLAG_NONBLOCK semantic and uniform the protocol.
The quick retry loop is already part of retry_transfer_wrapper.
The polling routine is common to the network protocols:
udp, tcp and, once merged, sctp.
2011-04-07 02:53:55 +02:00
Anton Khirnov
6e37b45888
mmst: get rid of deprecated AVERRORs
2011-04-06 14:10:08 +02:00
Anton Khirnov
a2018b5167
lxfdec: use AVERROR(ENOMEM) instead of deprecated AVERROR_NOMEM.
2011-04-06 14:10:08 +02:00
Anton Khirnov
f5b386afab
Reemove remaining uses of deprecated AVERROR_NOTSUPP.
2011-04-06 14:10:08 +02:00
Anton Khirnov
56a1000917
lavf: if id3v2 tag is present and all else fails, guess by file extension
2011-04-06 14:10:08 +02:00
Anton Khirnov
668438a31e
avio: always compile dyn_buf functions
...
Fixes build with --disable-muxers --disable-network.
Thanks to Hendrik Leppkes for noticing.
2011-04-05 19:32:14 +02:00
Anton Khirnov
b840484798
avio: make URL_PROTOCOL_FLAG_NESTED_SCHEME internal
2011-04-05 08:40:57 +02:00
Anton Khirnov
1305d93c42
avio: deprecate av_url_read_seek
...
It's not used anywhere internally.
Salvage its documentation for ffio_read_seek.
2011-04-05 08:40:27 +02:00
Anton Khirnov
fa104e14ab
avio: deprecate av_url_read_pause
...
It's not used anywhere internally.
Salvage its documentation for ffio_read_pause.
2011-04-05 08:39:40 +02:00
Anton Khirnov
727c7aa026
avio: deprecate url_get_filename().
...
URLContext.filename should be used directly.
2011-04-04 17:45:20 +02:00
Anton Khirnov
5958df341d
avio: deprecate url_max_packet_size().
...
URLContext.max_packet_size should be used directly.
2011-04-04 17:45:20 +02:00
Anton Khirnov
1869ea03b7
avio: make url_get_file_handle() internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
32a97d4630
avio: make url_filesize() internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
e52a9145c8
avio: make url_close() internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
58a48c6511
avio: make url_seek() internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
230a468679
avio: cosmetics, move AVSEEK_SIZE/FORCE declarations together
2011-04-04 17:45:20 +02:00
Anton Khirnov
925e908bc7
avio: make url_write() internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
dce3756459
avio: make url_read_complete() internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
bc371aca46
avio: make url_read() internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
0589da0aa5
avio: make url_open() internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
62eaaeacb5
avio: make url_connect internal.
2011-04-04 17:45:20 +02:00
Anton Khirnov
5652bb9471
avio: make url_alloc internal.
2011-04-04 17:45:19 +02:00
Martin Storsjö
0d8a33b11e
applehttp: Merge two for loops
...
The previous commit didn't do this straight away, to keep the
diff slightly simpler.
2011-04-04 13:01:59 +03:00
Martin Storsjö
6cc7f13982
applehttp: Restructure the demuxer to use a custom AVIOContext
...
This avoids issues where EOF at the end of the segment is given
the variant demuxer. Now the demuxers only see one single data
stream (as when using the applehttp protocol handler).
2011-04-04 12:59:23 +03:00
Martin Storsjö
d3964da2c2
applehttp: Move finished and target_duration to the variant struct
...
This is a preparation for a restructuring of the demuxer, to
minimize the later diff.
2011-04-04 12:44:23 +03:00
Anton Khirnov
333e894363
avio: deprecate url_open_protocol
...
The unbuffered API will be made private and it's not used anywhere
internally.
2011-04-04 07:46:29 +02:00
Anton Khirnov
e230705392
avio: deprecate url_poll and URLPollEntry
...
They're unimplemented and nobody cared to do anything with that for
10 years.
2011-04-04 07:45:44 +02:00
Justin Ruggles
e3c007bb43
flvdec: fix segfault in amf_parse_object() due to NULL key
...
fixes Issue 2674
2011-04-03 20:29:04 -04:00
Anton Khirnov
4dcde00cfc
lavf: bump minor version and add an APIChanges entry for avio changes
2011-04-03 23:38:05 +02:00
Anton Khirnov
8bea72f7eb
avio: simplify url_open_dyn_buf_internal by using avio_alloc_context()
2011-04-03 23:33:51 +02:00
Anton Khirnov
724f6a0fa4
avio: make url_fdopen internal.
...
The unbuffered URLContext API will be made private, so there's no point
in this function being public.
2011-04-03 22:47:39 +02:00
Anton Khirnov
403ee835e7
avio: make url_open_dyn_packet_buf internal.
...
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.
2011-04-03 22:47:32 +02:00
Anton Khirnov
6dc7d80de7
avio: avio_ prefix for url_close_dyn_buf
2011-04-03 22:47:05 +02:00
Anton Khirnov
b92c545282
avio: avio_ prefix for url_open_dyn_buf
2011-04-03 22:46:56 +02:00
Anton Khirnov
8978fedaee
avio: introduce an AVIOContext.seekable field
...
Use it instead of url_is_streamed and AVIOContext.is_streamed.
2011-04-03 22:46:40 +02:00
Anton Khirnov
b4b167ecbf
jvdec: don't use deprecated CODEC_TYPE_*/PKT_FLAG_KEY
2011-04-02 16:16:44 +02:00
Anton Khirnov
3c96c64821
avio: document avio_alloc_context.
2011-04-01 20:02:32 +02:00
Anton Khirnov
ab11317c1f
lavf: make compute_chapters_end less picky.
...
In particular, now it assumes that
a) chapters are chronologically ordered
b) chapters have the same timebases
c) duration of the stream is known
and asserts if any of these is not met.
Make it properly deal with harsher conditions.
fixes issue2320
2011-04-01 19:53:55 +02:00