Michael Niedermayer
ff814c75a3
ffserver: fix return value of add_codec()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0f46825d98
ffserver: prevent nb_streams from becoming too large
...
Fixes CID732249
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Ettl
f077e1fb4c
ffserver: fix potential buffer overflow, based on wrong fscanf format indentifier.
...
Fixed Ticket1780
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Bobby Bingham
f1b6c14297
ffserver: fix typo in log message
...
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com>
12 years ago
Michael Niedermayer
1fc3e8f4ea
ffserver: fix unsafe snprintf() return usage.
...
Found-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
9c6af3a3db
ffserver: increase buffer size in http_send_too_busy_reply()
...
also add a assert0 to make sure the data is not truncated (which
should be impossible now)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
d40c0e4a67
ffserver: fix order of evaluation bugs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Miroslav Slugeň
00969376ce
ffserver: add missing buffer set after rewrite av_open_input_file to avformat_open_input.
...
Fixes Ticket346
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9fcc62ed9b
Revert "ffserver: remove unused variable."
...
This reverts commit f02f745e4a
.
13 years ago
Paul B Mahol
0b717e24f9
ffserver: use avcodec_get_context_defaults3()
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9430c232e8
ffserver: fix program reference
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
fc5a905a6d
ffserver: check chdir() return
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
93613338fe
ff* tools: move descriptions from copyright header to @file doxy
13 years ago
Michael Niedermayer
452406bd5b
ff*: Fix duplicatedly printed version info with -version
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
db29da9ac8
ffserver: use av_noreturn
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
4d58e4cb4c
Rename ffserver to avserver.
13 years ago
Mike Williams
863e2046fd
ffserver: Replace two loops with one loop.
...
Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Diego Biurrun
71a1d1116f
Replace some gotos that lead to single return statements by direct return.
14 years ago
Anton Khirnov
71a861cf40
lavc: make avcodec_alloc_context3 officially public.
...
Deprecate avcodec_alloc_context/2.
14 years ago
Anton Khirnov
0b950fe240
lavc: introduce avcodec_open2() as a replacement for avcodec_open().
...
Adds support for decoder-private options and makes setting other options
simpler.
14 years ago
Chris Wilson
f02f745e4a
ffserver: remove unused variable.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Jeff Downs
a09918335f
Make all option parsing functions match the function pointer type through which they are called.
...
All option parsing functions now match the function pointer signature through
which they are called (int f(const char *, const char *), thereby working
reliably on all platforms.
Prefix all option processing functions with opt_
14 years ago
Anton Khirnov
50f2dfad67
ffserver: use new avformat_open_* API.
14 years ago
Anton Khirnov
dc59ec5e79
AVOptions: add av_opt_find() as a replacement for av_find_opt.
14 years ago
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
14 years ago
Diego Biurrun
f190f676bc
Replace custom DEBUG preprocessor trickery by the standard one.
14 years ago
Mike Williams
e2d7dc87df
ffserver: move close_connection() call to avoid a temporary string and copy.
...
Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Mike Williams
db3262b700
ffserver: Fix a null pointer dereference as a result of the 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.
14 years ago
Mike William
840238b870
ffserver: dont just crash
...
With changes from ubitux.
14 years ago
Maksym Veremeyenko
ab1c19efc5
fix ffserver's SIGSEGV
14 years ago
Diego Biurrun
046f081b46
configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.
...
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.
14 years ago
Diego Biurrun
e6ff064845
Eliminate pointless '#if 1' statements without matching '#else'.
14 years ago
Diego Biurrun
89b503b55f
Lowercase all ff* program names.
14 years ago
Diego Biurrun
43fb279f56
Replace more FFmpeg instances by Libav or ffmpeg.
14 years ago
Stefano Sabatini
55815edca0
prefer avio_check() over url_exist()
...
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>
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
41d0eb1c81
lavc: remove the FF_API_SET_STRING_OLD cruft.
14 years ago
Anton Khirnov
761ad42968
lavf: remove FF_API_MAX_STREAMS cruft
14 years ago
Anton Khirnov
3ee53dabcf
lavf: get rid of ffm-specific stuff in avformat.h
14 years ago
Anton Khirnov
c3675dfe1e
lavf: rename avf_sdp_create to av_sdp_create.
...
The new name is more consistent with the rest of the API.
14 years ago
Anton Khirnov
f87b1b373a
avio: AVIO_ prefixes for URL_ open flags.
14 years ago
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.
14 years ago
Anton Khirnov
6dc7d80de7
avio: avio_ prefix for url_close_dyn_buf
14 years ago
Anton Khirnov
b92c545282
avio: avio_ prefix for url_open_dyn_buf
14 years ago
Anton Khirnov
8978fedaee
avio: introduce an AVIOContext.seekable field
...
Use it instead of url_is_streamed and AVIOContext.is_streamed.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
83fddaeb81
avio: deprecate url_open_buf
...
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>
14 years ago
Anton Khirnov
d9d86e00b2
avio: avio_ prefix for url_fprintf
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
ebb92e0768
avio: rename url_fopen/fclose -> avio_open/close.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 22a3212e32
)
14 years ago