Anton Khirnov
93b78d1210
lavf: make a variant of ff_get_str16_nolen public
...
It will be useful in mp3 demuxer and hopeful some other places.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Mans Rullgard
d0f0f6287c
armcc: filter out non-gcc options from ASFLAGS
...
This allows passing armcc-specific flags with --extra-cflags without
choking the assembler.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
9d201b2606
configure: add filter_out() function
...
This adds a function to filter out words matching a pattern
from a list.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Ronald S. Bultje
44002d8323
Don't do edge emulation unless the edge pixels will be used in MC.
...
Do not emulate larger edges than we will actually use for this round of
MC. Decoding goes from avg+SE 29.972+/-0.023sec to 29.856+/-0.023, i.e.
0.12sec or ~0.4% faster.
14 years ago
Jai Menon
c0ae5152d1
ffmetaenc: Use correct format specifiers.
...
Use printf format macros from inttypes.h.
Additionally, this fixes a warning when building with clang.
14 years ago
Mans Rullgard
e781c4e6ff
intfloat_readwrite: include "mathematics.h" for fallback macros
...
This allows this file to build on systems lacking NAN or INFINITY
in math.h.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
1e48cdaac3
tty: remove superflous #include <strings.h>
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
21c900129c
ac3: remove ff_ac3_critical_band_size_tab[] external declaration
...
This fixes compilation broken by 6ed3b504f9
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
6ed3b504f9
Move ff_ac3_critical_band_size_tab in ac3.c for non-hardcoded tables.
...
This symbol is only ever used to calculate the non-hardcoded tables, so
only enable it in that case, and static to the source unit that uses it.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
362bfe2997
Remove unused ac3_parametric_bit_allocation function.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
3d157bf31f
Makefile: fix cleaning of tools in tests directory
...
The variable TESTPROGS is reset by the library makefiles,
use another name.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Daniel Verkamp
54fe299b88
configure: move network tests before results are needed
...
This moves network_extralibs setup before use so that the link tests
for network functions work correctly.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Georgi Chorbadzhiyski
6e78c8ee94
mpegtsenc: remove unused variables
...
Remove two variables that were not used and caused the following
warnings:
CC libavformat/mpegtsenc.o
libavformat/mpegtsenc.c: In function 'mpegts_write_section':
libavformat/mpegtsenc.c:72:18: warning: unused variable 'ts'
libavformat/mpegtsenc.c: In function 'mpegts_insert_null_packet':
libavformat/mpegtsenc.c:586:18: warning: unused variable 'ts'
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Daniel Verkamp
3adbe49f2b
Fix ALLPROGS_G so that *_g binaries get cleaned properly
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
e153e9a53a
latm: remove superflous #includes
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
6081f8c4e2
avidec: make print_tag() a macro and remove related ifdefs
...
The dprintf macro is a no-op if DEBUG is not defined, so there
is no need to guard it here.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
119cc033fc
Make RTPFirstDynamicPayloadHandler static to rtpdec.c
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
69ad22c7a7
Make ff_realmedia_mp3_dynamic_handler static.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
aa61e39eac
Make denoise_dct_c() and dct_quantize_trellis_c() static in definitions
...
1d4da6a460
added static to the
prototypes for these fuctions. Adding it to the definitions
as well.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
5b5083b5fe
Don't declare a pcm_dvd encoder.
...
The PCM_DVD encoder would be left unused, as allcodecs.c properly declared
it as being decoder-only, but it would still be built into the object file.
Since there is no block of code to properly encode this PCM format, it's
not a full codec.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio 'Flameeyes' Pettenò
73a0b19ba3
Don't check for DEBUG before using dprintf.
...
The dprintf macro is no-op when DEBUG is unset, so there is no need to
put it conditional to DEBUG.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
a6d1bd05c9
Make local variables static.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
f0a8676958
Make dvenc.c functions static to the unit.
...
Also drop some CONFIG_DV_MUXER #ifdefs probably vestigial from before the
split of dvenc and dvdec.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
1d4da6a460
Make denoise_dct_c and dct_quantize_trellis_c static.
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
bb875b75ba
Make the ff_lockmgr_cb function pointer static to utils.c
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
3568853f63
Make this_year static to cmdutils.c
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
82e1f217f2
Rename sf_table in atrac.c unit to ff_atrac_sf_table.
...
This ensures a locally-unique name as well as marks the symbol as
FFmpeg-private at least by declaration.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Elio Pettenò
53493f9a81
Mark qmf_window table static to atrac.c unit.
...
The table is not used anywhere else on libavcodec.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
80944df720
x86: fix overflow in h264 8x8 planar prediction
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
e63dd5fb04
fate: add h264 test for extreme cases in planar prediction
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
efa6ce9982
ffserver: put gcc attribute under proper ifdef
14 years ago
Martin Storsjö
2762a7a28b
rtspdec: Retry with TCP if UDP failed
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Martin Storsjo
e836b1b085
rtspdec: Move rtsp_read_pause up, next to rtsp_read_play
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Martin Storsjo
aeb2de1c82
rtsp: Use ff_rtsp_undo_setup in the cleanup code in ff_rtsp_make_request
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Martin Storsjo
93e7490ee0
rtsp: Split out a function undoing the setup made by ff_rtsp_make_setup_request
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Martin Storsjo
fef5649a82
rtsp: Make make_setup_request a nonstatic function
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Reimar Döffinger
4be170c937
Use av_fast_malloc instead of av_realloc.
...
This should be faster, is less code and fixes issue 2524
(allocation error would lead to crash).
(cherry picked from commit e7b95918fc
)
14 years ago
Reimar Döffinger
032f406864
Handle input or output len of 0 properly in lzo decoder.
...
(cherry picked from commit 7d5082600e
)
14 years ago
Martin Storsjö
2b0decf60b
applehttp: Fix the key check in handle_variant_args
...
The key string is supposed to contain the equals character,
too. Since the checked string was wrong, and the return value
check was wrong too, it incorrectly seemed to work right before.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Kostya
dacbcd170a
reindent after last commit
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Kostya
3bdc886c22
Extend WavPack demuxer and decoder to support >2 channel audio
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Stefano Sabatini
07b48f8c7a
Do not set audio_resample to 0 if audio_sync_method is > 1.
...
If audio_sync_method is >1 the resampler is used for audio drift
compensation, and do_audio_out() was causing an assert failure because
audio_resample was not set.
Fix issue 2516, which was introduced by SVN r25939.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
78f318be59
ARM: NEON: fix overflow in h264 16x16 planar pred
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
5f3b8314a4
Add CFLAGS needed by PathScale compiler
...
The PathScale compiler miscompiles wrapping arithmetic without
these flags.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
a1e4b3f6d3
Disable symbol versioning on some BSDs
...
Dragonfly, NetBSD, and OpenBSD do not support symbol versioning
although our link test passes. Disable it explicitly for these
systems.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
7a5a168abe
MIPS: use inline asm only when supported by compiler
14 years ago
Janne Grunau
2fd9035ddc
aacenc: fix typo in sync extension constant in 8ae0fa2
14 years ago
Mans Rullgard
f162e988aa
Remove redundant checks against MIN_CACHE_BITS
...
With the removal of the libmpeg2 bitstream reader, MIN_CACHE_BITS
is always >= 25, so tests against smaller values can be removed.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
611a6f59ce
get_bits: move tracing macros to end of file
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
fb5c841d5f
Sanitise get_bits macros, part 2
...
These whitespace changes improve the readability of the get_bits
macros.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago