aboutsummaryrefslogtreecommitdiff
path: root/avserver.c
AgeCommit message (Collapse)Author
2012-11-15avserver: replace av_read_packet with av_read_frameJanne Grunau
2012-11-15avserver: fix constness casting warningsJanne Grunau
Use a different char* for extracting info string from the URL. The other pointer can be made const then which elimates the need for a cast and fixes the following warnings: warning: to be safe all intermediate pointers in cast from ‘char **’ to ‘const char **’ must be ‘const’ qualified [-Wcast-qual]
2012-11-15avserver: use freopen to redirect stdin/out/err to /dev/nullJanne Grunau
2012-11-15avserver: remove daemon modeMans Rullgard
This code spews a multitude of warnings with glibc (unchecked return values), some of them possibly warranted. Furthermore, the deamonisation is not suitable for use with typical startup scripts as it does not provide the PID of the daemon in any way. Users wishing to run avserver as a daemon can still do so using start-stop-daemon or equivalent tools. Signed-off-by: Mans Rullgard <mans@mansr.com> Signed-off-by: Janne Grunau <janne-libav@jannau.net>
2012-10-27avserver: use socklen_t where appropriateMans Rullgard
Various socket functions expect a pointer to socklen_t which is not necessarily int. Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-16avserver: move avserver-specific code from ffmdec.c to avserver.cMans Rullgard
This way avserver only depends on the data structures of the ffm demuxer, which it already does, and not also on private functions being exported by the library. Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-10-01Use atexit() instead of defining a custom exit_program() interface.Diego Elio Pettenò
2012-10-01avcodec: Drop silly and/or broken printf debug outputDiego Biurrun
2012-09-11avserver: Add missing #include for av_gettime()Diego Biurrun
2012-08-19avconv: split printing "main options" into global and per-file.Anton Khirnov
2012-08-19cmdutils: extend -h to allow printing codec details.Anton Khirnov
2012-08-19avtools: move some newlines to show_help_options().Anton Khirnov
Don't require every caller to supply them.
2012-08-07Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov
2012-06-20Remove unnecessary inclusions of [sys/]time.hMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-05-06avserver: check return value of ftruncate()Mans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-03-28Replace memset(0) by zero initializations.Diego Biurrun
Also remove one pointless zero initialization in rangecoder.c.
2012-02-21Mark mutable static data const where appropriate.Alex Converse
2012-01-22avserver: fix build after the next bump.Anton Khirnov
Now that 0.8 is out we can reapply this commit. It breaks shared avserver builds due to avserver using internal libavformat symbols, which are now hidden, so this commit also disables avserver with --enable-shared.
2012-01-21Revert "avserver: fix build after the next bump."Anton Khirnov
This temporarily (until 0.8 is released) reverts commit 8e1340abc316e038bb89e5a3b46e92ff58c98a88. That commit breaks shared builds because of symbol hiding. Reverting it will enable shared builds for 0.8
2012-01-20avserver: fix build after the next bump.Anton Khirnov
2012-01-12avserver: remove code using deprecated CODEC_CAP_PARSE_ONLY.Anton Khirnov
2011-12-12Replace all uses of av_close_input_file() with avformat_close_input().Anton Khirnov
2011-12-12lavf: deprecate av_close_input_stream().Anton Khirnov
And remove all its uses.
2011-12-11Fix a bunch of common typos.Diego Biurrun
2011-11-06Call avformat_network_init/deinit in the programsMartin Storsjö
Calling the init function will become mandatory at some later point. By calling it, more heavy network init (such as SSL/TLS library init) can be done once at startup, instead of implicitly when used (which could lead to it being done a number of times). Signed-off-by: Martin Storsjö <martin@martin.st>
2011-11-06Replace all usage of strcasecmp/strncasecmpReimar Döffinger
All current usages of it are incompatible with localization. For example strcasecmp("i", "I") != 0 is possible, but would break many of the places where it is used. Instead use our own implementations that always treat the data as ASCII. Signed-off-by: Martin Storsjö <martin@martin.st>
2011-11-02Replace outdated references to ffmpeg tool with avconv.Diego Biurrun
2011-10-19lavc: make avcodec_get_context_defaults3 "officially" publicAnton Khirnov
Deprecate avcodec_get_context_defaults/avcodec_get_context_defaults2
2011-10-12Remove all uses of deprecated AVOptions API.Anton Khirnov
2011-10-12rtpdec: Add ff_ prefix to all nonstatic symbolsMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2011-09-30avserver: Fix a bug where the socket is IPv4, but IPv6 is autoselected for ↵Nathan Caldwell
the loopback address. This fixes bind(8080): Address family not supported by protocol. Signed-off-by: Anton Khirnov <anton@khirnov.net>
2011-09-26avtools: parse loglevel before all the other options.Anton Khirnov
This way it can be applied to cmdutils too -- e.g. showing the banner and printing startup messages.
2011-09-04cmdutils: add support for caller-provided option context.Anton Khirnov
This is the first step to removing the globals plague from avtools.
2011-09-04cmdutils: move exit_program() declaration to cmdutils from avconvAnton Khirnov
Allows cmdutils to call each tool's own cleanup function.
2011-08-26Replace deprecated av_find_stream_info() by avformat_find_stream_info().Diego Biurrun
2011-08-09Rename ffserver to avserver.Anton Khirnov