Mans Rullgard
c19e0ebe53
lavf: include libavutil/time.h instead of redeclaring av_gettime()
...
This avoids some warnings about redundant declarations.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Janne Grunau
1d01fee980
fix hardcoded tables compililation caused by missing math constants
...
Add -D_XOPEN_SOURCE=600 to host cflags to make the constants in math.h
available. Include math.h where necessary and remove redundant M_PI
defines.
13 years ago
Ronald S. Bultje
67ffcb9613
lavf: Make codec_tag arrays constant
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
89ffd189ef
twinvq: give massive struct a name.
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Mans Rullgard
dc7e336cae
lavf, lavu: version bumps and APIchanges for av_gettime() move
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
e026c9b390
lavfi/audio: don't set cur_buf in ff_filter_samples().
...
It's redundant, since the input buffer is passed as a parameter to the
filter_samples() callback, and can lead to stale pointers remaining on
the link.
13 years ago
Anton Khirnov
4a97ff2fa7
lavfi/fifo: add audio version of the fifo filter.
13 years ago
Anton Khirnov
27570e211a
fifo: fix parenthesis placement.
13 years ago
Anton Khirnov
394a2a0452
lavfi: rename vf_fifo.c -> fifo.c
...
It will be used for audio too.
13 years ago
Anton Khirnov
a50b756280
lavc: remove stats_in from AVCodecContext options table.
...
Its documentation states that it is allocated/freed by the caller, but
it is declared as an AV_OPT_TYPE_STRING AVOption. Since
367732832f
the AVOptions system frees
strings automatically. This can be considered an API break, since it
won't work when the caller doesn't use av_malloc() to allocate the
memory or wants to use the string after closing the codec.
Since there is not much value in this field being an AVOption, the best
solution is to remove it from the options table.
13 years ago
Kostya Shishkov
005c80b645
MS Screen 1 decoder
13 years ago
Alex Converse
43886eaebc
aacdec: Fix popping channel layouts.
...
'channel_layout' not 'channels' from the stored configuration should go
to AVCodecContext's 'channel_layout'.
13 years ago
Mans Rullgard
61183b5ab4
av_gettime: support Win32 without gettimeofday()
...
Based on patch by Ronald S. Bultje.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
980f81d961
Use av_gettime() in various places
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
ae0a301668
Move av_gettime() to libavutil
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
db7d8fb4ef
dct-test: use emms_c() from libavutil instead of duplicating it
13 years ago
Ronald S. Bultje
f1f37c7011
mov: fix operator precedence bug
13 years ago
Janne Grunau
a2b186a188
mathematics.h: remove a couple of math defines
...
While these defines are not defined by the C standard they are
standardized as X/Open System Interfaces Extension. We use the
appropiate _XOPEN_SOURCE define to make them available. They
seem to be available on all FATE configs since the constants
are used in files where mathematics.h is not included.
13 years ago
Mans Rullgard
6501dcfb5e
Remove unnecessary inclusions of [sys/]time.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
4e5a514813
lavf: remove unnecessary inclusions of unistd.h
...
These files do not use anything provided by unistd.h.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
4996e8f510
bfin: libswscale: add const where appropriate to fix warnings
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
6bac8971cc
bfin: libswscale: remove unnecessary #includes
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Martin Storsjö
042b272a4a
udp: Properly check for invalid sockets
...
If stdin has been closed, 0 is a valid socket descriptor.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
bb6c1abb0e
tcp: Check the return value from getsockopt
...
Make sure we actually have an error code in ret, in case
getsockopt failed.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
a840cdda6c
network: Use av_strerror for getting error messages
...
Also use ff_neterrno() instead of errno directly (which doesn't work
on windows), for getting the error code.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
860b40f1f2
udp: Properly print error from getnameinfo
...
getnameinfo doesn't set errno on failure, it returns an error code,
which should be handled by gai_strerror instead of the normal
strerror.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
6aa4e88106
mmst: Use AVUNERROR() to convert error codes to the right range for strerror
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
561687696f
network: Pass pointers of the right type to get/setsockopt/ioctlsocket on windows
...
This avoids warnings.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
9d811fd80f
rtmp: Reduce the number of idle posts sent by sleeping 50ms
...
Rtmpt is effectively half duplex - the server can't return any
data unless we send a request (to which the server responds). If
we don't have any data to send currently, and the server didn't
return any data either, wait a little before doing the next request.
This avoids busy looping with idle posts with empty replies, while
waiting for more data from the server.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
4cc2920dd2
flvdec: remove incomplete, disabled seeking code
13 years ago
Ronald S. Bultje
be1a839ca6
mem: add support for _aligned_malloc() as found on Windows
...
The check uses check_func_header, since this function is
conditionally available depending on the targeted MSVCRT
version.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Simon A. Eugster
7146177d18
lavc: Extend the documentation for avcodec_init_packet
...
Add a note that pkt->data and pkt->size must be initialized.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
8703f0140f
flvdec: remove incomplete, disabled seeking code
13 years ago
Ronald S. Bultje
51a2b5546b
http: replace atoll() with strtoll()
13 years ago
Ronald S. Bultje
ae2bb52cd2
mpegts: remove unused/incomplete/broken seeking code
13 years ago
Justin Ruggles
ae46fbee1d
af_amix: allow float planar sample format as input
13 years ago
Justin Ruggles
f0ece49e74
af_amix: use AVFloatDSPContext.vector_fmac_scalar()
13 years ago
Justin Ruggles
82b2df9790
float_dsp: add x86-optimized functions for vector_fmac_scalar()
13 years ago
Justin Ruggles
cb5042d02c
float_dsp: Move vector_fmac_scalar() from libavcodec to libavutil
13 years ago
Justin Ruggles
4e4dd71730
lavr: Add x86-optimized function for flt to s32 conversion
13 years ago
Justin Ruggles
6c63cbfe7a
lavr: Add x86-optimized function for flt to s16 conversion
13 years ago
Justin Ruggles
97ce1ba867
lavr: Add x86-optimized functions for s32 to flt conversion
13 years ago
Justin Ruggles
5904f25b9f
lavr: Add x86-optimized functions for s32 to s16 conversion
13 years ago
Justin Ruggles
d721f67d0a
lavr: Add x86-optimized functions for s16 to flt conversion
13 years ago
Justin Ruggles
1168e29df1
lavr: Add x86-optimized function for s16 to s32 conversion
13 years ago
Martin Storsjö
579fd87b46
rtpenc: Support packetizing iLBC
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
89c3960544
rtpdec: Add a depacketizer for iLBC
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
a2b251a05e
Implement the iLBC storage file format
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
9e74db6850
mov: Support muxing/demuxing iLBC
...
The packet size, signalled via block_align, has to be passed via
the container.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
3641b0489c
Add support for iLBC decoding/encoding via the external library libilbc
...
The library is 3-clause BSD licensed.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago