Michael Niedermayer
73920ac573
ffserver: replace atoll() by strtoll()
...
this should make it easier to support ffserver with msvc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
4a595cff79
ffserver/ctime1: avoid using strcpy()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
19c41c6d8e
opt: re-enable memleak fix for duplicated options.
...
The memleak fix in a1bcc76e
was causing problems when the original
string wasn't NULL or av_malloc'ed, thus was disabled. It seems the only
OPT_STRING occurence where it needed to be fixed is in ffserver. This
commit fixes that specific problem and so re-enable the original code.
12 years ago
Reimar Döffinger
88d55b827d
Remove incorrect use of ctype.h functions.
...
As far as I can tell the code should not change behaviour
depending on locale in any of these places.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Clément Bœsch
9db5f82032
ffserver: add missing padding to extradata.
12 years ago
Michael Niedermayer
cbe43e62c9
ffserver: set oformat
...
Fix Ticket1986
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c2c1726847
ffserver remove CONFIG_NOCUTILS check
...
Nothing sets CONFIG_NOCUTILS, i also dont remember anything setting it in
the past.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
f30cf51d46
ffserver: put NoDaemon back so as not not break existing conf files.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
0e482a8e49
ffserver: fix streams and priv_data memleaks when closing a connection.
12 years ago
Clément Bœsch
26afdbcfc0
ffserver: fix NULL dereference with quoted Stream name.
12 years ago
Clément Bœsch
a9ba9268d7
ffserver: prefer av_asprintf over malloc+snprintf for Launch setting.
12 years ago
Michael Niedermayer
a04698c4a9
ffserver: zero dest_addr
...
Fixes CID733838
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Ettl
cc72d52dc1
ffserver: fix printf argument type
12 years ago
Michael Niedermayer
71bc8c95d7
ffm_read_write_index: check lseek return code
...
Fixes CID732184
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
378a5b9c5f
ffm_write_write_index: check lseek() return code
...
Fixes CID732185
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
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