summaryrefslogtreecommitdiff
path: root/ffserver.c
Commit message (Collapse)AuthorAge
* Replace custom DEBUG preprocessor trickery by the standard one.Diego Biurrun2011-06-03
|
* ffserver: move close_connection() call to avoid a temporary string and copy.Mike Williams2011-05-26
| | | | | Signed-off-by: Mike Williams <mike@mikebwilliams.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffserver: Fix a null pointer dereference as a result of the ↵Mike Williams2011-05-26
| | | | | | | | | | | | | | FF_API_MAX_STREAMS cleanup. Fixed another dereference in the RTSP code. Removed a useless variable. Changed an unnecessary looping assignment to a simple assignment suggested by Maksym. Added fixes and tweaks suggested by Maksym Veremeyenko [verem@m1stereo.tv] and Clément B.
* configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-12
| | | | | | | | | | | | | | | | Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
* Eliminate pointless '#if 1' statements without matching '#else'.Diego Biurrun2011-04-26
|
* Lowercase all ff* program names.Diego Biurrun2011-04-23
|
* Replace more FFmpeg instances by Libav or ffmpeg.Diego Biurrun2011-04-23
|
* prefer avio_check() over url_exist()Stefano Sabatini2011-04-19
| | | | | | | | | | | | | | The problem with url_exist() is that it tries to open a resource in RDONLY mode. If the file is a FIFO and there is already a reading client, the open() call will hang. By using avio_check() with access mode of 0, the second reading process will check if the file exists without attempting to open it, thus avoiding the lock. Fix issue #1663. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbolsStefano Sabatini2011-04-19
| | | | | | | | 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.
* lavc: remove the FF_API_SET_STRING_OLD cruft.Anton Khirnov2011-04-19
|
* lavf: remove FF_API_MAX_STREAMS cruftAnton Khirnov2011-04-19
|
* lavf: get rid of ffm-specific stuff in avformat.hAnton Khirnov2011-04-08
|
* lavf: rename avf_sdp_create to av_sdp_create.Anton Khirnov2011-04-08
| | | | The new name is more consistent with the rest of the API.
* avio: AVIO_ prefixes for URL_ open flags.Anton Khirnov2011-04-07
|
* avio: make url_open_dyn_packet_buf internal.Anton Khirnov2011-04-03
| | | | | | | 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.
* avio: avio_ prefix for url_close_dyn_bufAnton Khirnov2011-04-03
|
* avio: avio_ prefix for url_open_dyn_bufAnton Khirnov2011-04-03
|
* avio: introduce an AVIOContext.seekable fieldAnton Khirnov2011-04-03
| | | | Use it instead of url_is_streamed and AVIOContext.is_streamed.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: deprecate url_open_bufAnton Khirnov2011-03-16
| | | | | | | It's only used in one place and does the same thing as avio_alloc_context. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fprintfAnton Khirnov2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename url_fopen/fclose -> avio_open/close.Anton Khirnov2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libavformat: Remove FF_NETERRNO()Martin Storsjö2011-02-23
| | | | | | | | | | | | | | 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>
* avio: avio: avio_ prefixes for put_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | 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 <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ffserver: Try matching the RTSP url without a trailing slashMartin Storsjö2011-02-17
| | | | | | If the client sends PLAY/PAUSE requests with the same url as specified in Content-Base, these requests may have urls with trailing slashes.
* Move find_info_tag to lavu and add av_ prefix to itAnton Khirnov2011-02-17
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Replace remaining uses of parse_date with av_parse_time.Anton Khirnov2011-02-16
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ffserver: set the sample aspect ratioNicolas George2011-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi. It seems that ffserver sets sample_aspect_ratio to an invalid value and lavf rejects it. I am not sure what I am doing here, but the attached patch actually solves something: using the following config: CustomLog - NoDaemon RTSPPort 5454 <Stream test1-rtsp.mpg> Format rtp File "/tmp/test1-rtsp.mpg" </Stream> it allows a somewhat old ffplay (unaffected by the content-base issue I spoke of in another thread) to play the stream. Without it, ffserver logs this and closes the stream: Wed Feb 16 14:52:14 2011 [rtp @ 0x1399de0]Aspect ratio mismatch between encoder and muxer layer Regards, -- Nicolas George From 1b89c3c2164335060e87567b27deb0d354e0a814 Mon Sep 17 00:00:00 2001 From: Nicolas George <nicolas.george@normalesup.org> Date: Wed, 16 Feb 2011 14:44:31 +0100 Subject: [PATCH] ffserver: set the sample aspect ratio. Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* ffserver: put gcc attribute under proper ifdefMans Rullgard2011-01-24
|
* ffserver: cleanupReinhard Tartler2011-01-23
| | | | | remove the trivial function do_switch_stream as it doesn't help to make the code easier to understand.
* Unbreak ffserverLuca Barbato2011-01-07
| | | | | | Make sure the sample_aspect_ratio is 0 and not 0/0. Originally committed as revision 26254 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Pass the method name to ff_rtsp_parse_lineMartin Storsjö2011-01-02
| | | | Originally committed as revision 26191 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement get_preset_file() in cmdutils.h and use it to factorize codeStefano Sabatini2010-11-04
| | | | | | from ffmpeg.c and ffserver.c. Originally committed as revision 25679 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffserver: use a local MAX_STREAMS limitAurelien Jacobs2010-10-15
| | | | Originally committed as revision 25495 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffserver: fix prepare_sdp_description() to dynamically allocate streamsAurelien Jacobs2010-10-15
| | | | Originally committed as revision 25494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()Stefano Sabatini2010-07-26
| | | | | | | | | | | in favor of the newly added corresponding functions av_parse_video_size() and av_parse_video_rate() defined in libavcore/parseutils.h. This change also adds a linking-time dependency of libavcodec and of libavfilter on libavcore. Originally committed as revision 24518 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Also use 503 for bandwidth limit exceededHoward Chu2010-07-08
| | | | Originally committed as revision 24107 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix "server too busy" status codeHoward Chu2010-07-08
| | | | Originally committed as revision 24105 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make ff_url_split() publicMåns Rullgård2010-06-27
| | | | | | | 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
* ffserver: Use avcodec_copy_context instead of manually copying an AVCodecContextMartin Storsjö2010-06-22
| | | | Originally committed as revision 23692 to svn://svn.ffmpeg.org/ffmpeg/trunk
* When reading a stream, should retry on EAGAIN instead of just failing. Also,Howard Chu2010-06-16
| | | | | | | when reading a live feed, should retry regardless of whether any client has opened the stream. Originally committed as revision 23621 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support presets in ffserver.confHoward Chu2010-06-08
| | | | Originally committed as revision 23524 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffserver: Calculate cur_pts using first_pts as origin instead of ist->start_timeMartin Storsjö2010-06-03
| | | | | | | This fixes cases where ist->start_time wasn't initialized. This also makes cur_pts calculated against the same origin for all streams. Originally committed as revision 23450 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffserver: Allow floating point audio bit ratesMartin Storsjö2010-06-02
| | | | | | This allows setting bit rates that aren't an exact multiple of 1000. Originally committed as revision 23419 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffserver: Send a Content-Base header in the reply to RTSP DESCRIBE requestsMartin Storsjö2010-05-25
| | | | | | This is needed for QuickTime Player to be able to connect properly. Originally committed as revision 23325 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffserver: Fix one of the codec parameter checksMartin Storsjö2010-05-24
| | | | | | | | This is probably what was originally intended; the codec pointers are all NULL. Fix by Howard Chu, hyc at highlandsun dot com Originally committed as revision 23295 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffserver: Fix streaming with more than one streamMartin Storsjö2010-05-24
| | | | | | Fix by Howard Chu, hyc at highlandsun dot com Originally committed as revision 23294 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ffserver: Fix extradata handlingHoward Chu2010-05-24
| | | | | | Patch by Howard Chu, hyc at highlandsun dot com Originally committed as revision 23293 to svn://svn.ffmpeg.org/ffmpeg/trunk