Martin Storsjö
f9a6cfdd04
rtpproto: Remove an unused variable
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Stefano Sabatini
59d96941f0
avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols
...
Make AVIO_FLAG_ access constants work as flags, and in particular fix
the behavior of functions (such as avio_check()) which expect them to
be flags rather than modes.
This breaks API.
14 years ago
Anton Khirnov
f35ff97f2e
lavf: use designated initializers for all protocols
...
This is more readable and makes it easier to reorder URLProtocol
members.
14 years ago
Anton Khirnov
f87b1b373a
avio: AVIO_ prefixes for URL_ open flags.
14 years ago
Anton Khirnov
5958df341d
avio: deprecate url_max_packet_size().
...
URLContext.max_packet_size should be used directly.
14 years ago
Anton Khirnov
1869ea03b7
avio: make url_get_file_handle() internal.
14 years ago
Anton Khirnov
e52a9145c8
avio: make url_close() internal.
14 years ago
Anton Khirnov
925e908bc7
avio: make url_write() internal.
14 years ago
Anton Khirnov
0589da0aa5
avio: make url_open() internal.
14 years ago
Anton Khirnov
4ec153bb66
avio: make udp_set_remote_url/get_local_port internal.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Nicolas George
c76374c6db
Use AVERROR_EXIT with url_interrupt_cb.
...
Functions interrupted by url_interrupt_cb should not be restarted.
Therefore using AVERROR(EINTR) was wrong, as it did not allow to distinguish
when the underlying system call was interrupted and actually needed to be
restarted.
This fixes roundup issues 2657 and 2659 (ffplay not exiting for streamed
content).
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Martin Storsjö
28c4741a66
libavformat: Remove FF_NETERRNO()
...
Map EAGAIN and EINTR from ff_neterrno to the normal AVERROR()
error codes. Provide fallback definitions of other errno.h network
errors, mapping them to the corresponding winsock errors.
This eases catching these error codes in common code, without having
to distinguish between FF_NETERRNO(EAGAIN) and AVERROR(EAGAIN).
This fixes roundup issue 2614, unbreaking blocking network IO on
windows.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
ab0287fcbd
Move find_info_tag to lavu and add av_ prefix to it
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Luca Barbato
a8475bbdb6
os: replace select with poll
...
Select has limitations on the fd values it could accept and silently
breaks when it is reached.
14 years ago
Diego Elio Pettenò
c6610a216e
Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.
...
This also lists the objects from those two libraries as internal (by adding
the ff_ prefix) so that they can then be hidden via linker scripts.
14 years ago
Martin Storsjö
babd19ce2e
rtpproto: Allow specifying the connect option, passed through to udp
...
By calling connect on the UDP socket, only packets from the chosen
peer address and port are received on the socket. This is one
solution to issue 1688.
Originally committed as revision 26244 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
a178edf298
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
14 years ago
Aurelien Jacobs
fb660f4015
drop rtp_get_local_port() which is not part of public API and not used anymore
...
Originally committed as revision 25555 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
4a94cfea02
rtpproto: Use a sockaddr_storage instead of a sockaddr_in with recvfrom
...
Originally committed as revision 25224 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Josh Allmann
186f1ec5f4
Add rtp_get_rtcp_file_handle function
...
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24929 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Josh Allmann
7f3468d392
rtp: Replace hardcoded RTCP packet types with defines
...
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24912 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Diego Biurrun
9a58234fea
Fix misspelled parameter names in Doxygen documentation.
...
This fixes one Doxygen warning each.
Originally committed as revision 23970 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
f3bfe388b5
Make ff_url_split() public
...
ff_url_split() is retained as an alias, as it was used by ffserver,
to avoid breaking ABI compatibility with it.
Originally committed as revision 23822 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
27241cbffe
Declare the url_write buffer parameter as const
...
Originally committed as revision 23401 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
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
15 years ago
Luca Barbato
9094d867aa
Make rtp protocol obey rfc3550
...
Originally committed as revision 22906 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
cae9a15c98
Don't report EINTR from select as an error, retry select instead
...
Originally committed as revision 22694 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Aurelien Jacobs
e4a9e3cc7c
move ff_url_split() and ff_url_join() declarations to internal.h
...
those functions are not part of the public API
Originally committed as revision 22534 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Dave Yeo
611b17d79b
Using struct timeval requires sys/time.h, fixes compilation on some OSes
...
Patch by Dave Yeo, daveryeo at telus dot net
Originally committed as revision 22425 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
f984dcf6dd
Reindent
...
Originally committed as revision 22322 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
c5c6e67c28
Rename url_split to ff_url_split
...
Since this function isn't in the public API, it should have an ff_ prefix.
Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
57b5555c91
Use ff_url_join for assembling URLs, instead of snprintf
...
This ensures proper escaping of numerical IPv6 addresses.
The RTSP (de)muxer needs its own network initialization, since it isn't
a protocol and url_open hasn't been called yet.
Originally committed as revision 22226 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
886f3f2f36
Return from rtp_read when select returns an error
...
Originally committed as revision 22219 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
c2b40ac229
Check url_interrupt_cb in rtp_read, wait in select for max 100 ms before rechecking url_interrupt_cb
...
Originally committed as revision 22209 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Carl Eugen Hoyos
1e6365b305
Include rtpdec.h, it contains prototypes for the following functions:
...
rtp_set_remote_url(), rtp_get_local_port(), rtp_get_file_handles()
Originally committed as revision 22107 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
f0a8039464
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
deprecated by this patch and will be removed at the next major API bump.
Originally committed as revision 17779 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
406792e7b0
cosmetics: Remove pointless period after copyright statement non-sentences.
...
Originally committed as revision 16684 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
Kurtnoise
7139bfa8fe
Surround '#include <sys/select>' by HAVE_SYS_SELECT_H.
...
patch by Kurtnoise, kurtnoise free fr
Originally committed as revision 14756 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Michael Niedermayer
0e55ba723b
Add needed include, make it compile without -D_BSD_SOURCE.
...
Originally committed as revision 14718 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 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
Luca Barbato
b4999290fd
Cleanup comments and make them doxygen parsable.
...
Originally committed as revision 12841 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Luca Barbato
fc9b22dd2e
Expose max_packet_size from the rtp protocol
...
Originally committed as revision 12839 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Luca Abeni
35b74c3deb
Remove the "multicast=" tag from UDP and RTP URLs
...
Originally committed as revision 12830 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Dave Yeo
93115b82f0
Add #include "os_support.h" to restore OS/2 support.
...
patch by Dave Yeo, daveryeo telus net
Originally committed as revision 11096 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 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
Måns Rullgård
ca3e90825c
remove duplicate #include
...
Originally committed as revision 9413 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Reimar Döffinger
272605c73e
more av_strl* adjustments
...
Originally committed as revision 9412 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago