Reimar Döffinger
523f676b51
Use a full table for base64 decode.
...
Also encodes error or end marker into table.
About 20% faster.
decode: 466491 -> 374139 decicycles
syntax check: 236955 -> 161182 decicycles
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-21 14:52:05 +01:00
Reimar Döffinger
d41c824b23
Fix valgrind FATE for out-of-tree builds.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-21 14:52:05 +01:00
Stefano Sabatini
a9117c755e
lavfi: fix mp and mandelbrot descriptions to make them complete sentences
...
This is consistent with the other filter descriptions.
2012-01-21 14:40:46 +01:00
Reimar Döffinger
8650d5faf9
base64: more thorough decode tests.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-21 12:04:46 +01:00
Reimar Döffinger
77b90f0cd0
Add a --valgrind configure option.
...
If specified runs "make fate" through valgrind using the
given valgrind binary.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-21 12:04:46 +01:00
Michael Niedermayer
99a42f3fa9
ac3dec: Move center&surround mix level tables to parser.
...
That way all mix levels as exported by the parser
will have the same meaning.
Previously the 3bit center mix level for eac3 was
used to index in a 4 entry table leading to out of array reads.
this change removes the table and offsets the ac3 variable by 4
so it matches the meanings for eac3 except the reserved case.
The reserved case is then explicitly handled.
Idea-by: Justin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 05:29:47 +01:00
Ray Simard
9ec39937f9
deshake: variable used uninitialized
...
Sometimes the scan finds nothing that qualifies for addition to
the array and pos is zero after the loops. The code forces pos to
1 and the array is then processed as if it had one valid element in it,
producing some amusing but not very useful results.
I don't see the rationale for this. If pos is zero coming out of the
loops, the only appropriate thing to do is set t->angle to zero. The
attached patch does that. It's worked properly in several tests so far.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 05:22:49 +01:00
Michael Niedermayer
bdd739e91c
base64: Only run benchmark when "-t" is specified.
...
As the test is run during fate and the benchmark is useless for fate
this very slightly speeds up fate. Its also consistent with the other
tests.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 05:13:56 +01:00
Michael Niedermayer
57822f0660
base64: fix little typo
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 02:10:19 +01:00
Michael Niedermayer
8f0768cc22
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
Add a tool that uses avio to read and write, doing a plain copy of data
ARM: fix build with FFT enabled and MDCT disabled
lavf: force single-threaded decoding in avformat_find_stream_info
avidec: migrate last of lavf from FF_ER_* to AV_EF_*
avserver: fix build after the next bump.
Conflicts:
libavformat/Makefile
libavformat/avidec.c
libavformat/utils.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 01:33:31 +01:00
Michael Niedermayer
01084336b7
base64: add a benchmark for a pure syntax check.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 00:32:52 +01:00
Michael Niedermayer
ea4da94895
base64: simplify end handling in av_base64_encode()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 00:24:10 +01:00
Michael Niedermayer
112bca91b0
base64: optimize av_base64_encode()
...
This makes the code 2-3 times as fast
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 00:24:10 +01:00
Michael Niedermayer
a41687c2d6
base64: add benchmark
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-21 00:24:10 +01:00
Reimar Döffinger
d60d718c49
Slightly optimize base64 encode.
...
Move handling of last byte outside of innermost loop.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-20 23:28:31 +01:00
Reimar Döffinger
6af4c9814a
Optimize output buffer size check in base64 decode.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-20 23:28:26 +01:00
Reimar Döffinger
686ba5f4ea
Minor optimization of base64 decode.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-20 23:27:16 +01:00
Martin Storsjö
23e57d167a
Add a tool that uses avio to read and write, doing a plain copy of data
...
It also optionally can throttle its operation to a particular
speed, to simulate realtime writing.
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-01-20 22:19:09 +02:00
Michael Niedermayer
2d9e2c6464
opt: Fix "libavutil/opt.c:811:20: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-20 20:34:48 +01:00
Felipe Contreras
c3d5e290ca
ARM: fix build with FFT enabled and MDCT disabled
...
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-01-20 16:14:01 +00:00
Stefano Sabatini
23934e5f41
ffprobe: increase precision for the shown float values
2012-01-20 13:27:57 +01:00
Stefano Sabatini
4601ad769d
ffprobe: fix value_string() prefix printing for values with negative logarithm
...
The index for the binary_unit_prefixes array is expected to be positive,
so avoid to use negative indexes for accessing it.
2012-01-20 13:27:52 +01:00
Stefano Sabatini
eef4b70450
ffprobe: reindent after previous commit
2012-01-20 13:27:46 +01:00
Stefano Sabatini
58b10b4c7e
ffprobe: factorize common code in value_string()
2012-01-20 13:27:41 +01:00
Stefano Sabatini
72092188ef
ffmpeg: remove unused and commented variable OutputStream.sync_ipts
2012-01-20 10:58:00 +01:00
Janne Grunau
59297ad63d
lavf: force single-threaded decoding in avformat_find_stream_info
...
The H.264 decoder needs SPS and PPS for initialization during
multi-threaded decoding. When probed single-threaded SPS and PPS are
copied to extradata and are available for proper initialization of
the decoder before the first frame is decoded.
2012-01-20 09:41:46 +01:00
Dustin Brody
b89f8774f2
avidec: migrate last of lavf from FF_ER_* to AV_EF_*
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
2012-01-20 09:30:09 +01:00
Anton Khirnov
8e1340abc3
avserver: fix build after the next bump.
2012-01-20 09:17:21 +01:00
Michael Niedermayer
48706f41e1
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
mpeg12: check for available bits to avoid an infinite loop
fate: add some shorthands to run groups of tests
fate: Give some tests more sensible names.
cosmetics: Rename ffsink to avsink.
Conflicts:
avconv.c
cmdutils.c
cmdutils.h
ffmpeg.c
ffplay.c
tests/fate/audio.mak
tests/fate/demux.mak
tests/fate/dpcm.mak
tests/fate/image.mak
tests/fate/lossless-audio.mak
tests/fate/lossless-video.mak
tests/fate/microsoft.mak
tests/fate/pcm.mak
tests/fate/real.mak
tests/fate/screen.mak
tests/fate/video.mak
tests/fate/voice.mak
tests/fate/wma.mak
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-20 02:14:54 +01:00
Clément Bœsch
9d35fa43ee
lavfi: add missing periods in descriptions.
2012-01-20 00:16:27 +01:00
Nicolas George
dcea7ca752
cmdutils: include type in filter list.
2012-01-19 23:33:17 +01:00
Nicolas George
a9575ffc65
cmdutils: media type to letter conversion in a separate function.
2012-01-19 23:33:17 +01:00
Michael Bradshaw
de07355026
Changed indexing in libopenjpeg to shorten lines
2012-01-19 23:31:22 +01:00
Carl Eugen Hoyos
df42dd7323
Support gray8a encoding with libopenjpeg.
...
Reviewed-by: Michael Bradshaw
Reviewed-by: Paul B Mahol
2012-01-19 23:31:22 +01:00
Carl Eugen Hoyos
e209a37777
Simplify 32bit png decoding.
2012-01-19 23:31:22 +01:00
Carl Eugen Hoyos
21a1006109
Support encoding 16bit pixel formats to sgi.
2012-01-19 23:31:22 +01:00
Carl Eugen Hoyos
b614c14767
Simplify 32bit pam decoding.
...
Reviewed-by: Paul B Mahol
2012-01-19 23:31:21 +01:00
Carl Eugen Hoyos
34aadeaa2c
Simplify PIX_FMT_RGB555LE selection in targa decoder.
...
Suggested by Jean First.
2012-01-19 23:31:21 +01:00
Carl Eugen Hoyos
b4634a006c
Simplify targa decoding on big endian.
2012-01-19 23:31:21 +01:00
Nicolas George
4cf81d9f99
libcelt: configure: check for recent version.
2012-01-19 19:47:08 +01:00
ami_stuff
ef9623f670
Add "S263" FourCC
...
fixes ticket #923
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-19 17:20:50 +01:00
Javier Cabezas
1406d9ddc6
DNxHD: frame multithreading
...
Signed-off-by: Javier Cabezas <jcabgz@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-19 17:12:43 +01:00
Jindřich Makovička
a85ce653fb
mpeg12: check for available bits to avoid an infinite loop
...
Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2012-01-19 14:14:21 +01:00
Michael Niedermayer
1ce8377c78
wmalossless: Fix incompatoble pointer type warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-19 08:51:56 +01:00
Michael Niedermayer
c130428ab5
Merge remote-tracking branch 'qatar/master'
...
* qatar/master:
avprobe, cmdutils: K&R formatting cosmetics
tests: K&R formatting cosmetics for test programs
lavf: free packets for muxers implementing interleave_packet().
lavf: fix and extend av_interleaved_write_frame() doxy.
mov: Remove dead stores for spherical coordinates for channel position.
error_resilience: K&R formatting cosmetics
RELEASE_NOTES: mention hiding private symbols in shared builds.
RELEASE_NOTES: mention some notable API changes in 0.8
Conflicts:
cmdutils.h
doc/RELEASE_NOTES
ffprobe.c
libavcodec/error_resilience.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2012-01-19 01:19:38 +01:00
Diego Biurrun
e5903e2972
fate: add some shorthands to run groups of tests
2012-01-19 00:45:21 +01:00
Diego Biurrun
395e6402fe
fate: Give some tests more sensible names.
2012-01-19 00:45:06 +01:00
Diego Biurrun
45f2908d02
cosmetics: Rename ffsink to avsink.
2012-01-19 00:19:43 +01:00
Reimar Döffinger
6fd4b8a6ef
Replace a av_fast_malloc with av_fast_padded_malloc.
...
This one was missed in the previous fraps fix, the
allocation is exactly the same in both cases.
Fixes fraps-v5 under valgrind.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-18 22:04:14 +01:00
Reimar Döffinger
e8b060f7e7
Use av_fast_padded_malloc in mimic and truemotion2 decoders.
...
Fixes use of uninitialized data errors under valgrind.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
2012-01-18 22:04:14 +01:00