Anton Khirnov
3b4bb19e63
lavf: flush the output AVIOContext in av_write_trailer().
This is consistent with stdio and is what we want to do in all cases.
Fixes a bug in the voc muxer which didn't flush in write_trailer()
previously. This is the cause of the change in the test results.
13 years ago
Anton Khirnov
0c270239c2
lavf: cosmetics, reformat av_write_trailer().
13 years ago
Stefano Sabatini
5d1203f063
avio: flush the internal buffer in avio_close()
This is consistent with stdio, and thus what people would naturally
expect.
13 years ago
Andrey Utkin
0443879089
Enhance doc on asyncts audiofilter
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
990450c5bf
cmdutils: avoid setting data pointers to invalid values in alloc_buffer()
Fixes bug 352.
13 years ago
Mans Rullgard
cb6632809d
libavcodec: remove av_destruct_packet_nofree()
This function was deprecated two major versions ago (2009).
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Derek Buitenhuis
1c56cdad33
riff: Add SVQ3 fourcc
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Mans Rullgard
07e87858d4
fate: ac3: add 4.0 and downmix tests
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
692dd8ed26
configure: x86: improve ebp availability check
Some compilers are extra strict about register usage in main(),
disallowing ebp in inline asm there while allowing it elsewhere.
This change makes the test better reflect actual usage.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Luca Barbato
714508bcb9
vorbisdec: ensure FASTDIV denominator is never 1
In both usages of FASTDIV the denominator might be 1.
Using a branch could make the function slower than using a normal
division.
Both denominator and numerator can be multiplied by 2 safely and
using shifts is faster than using a branch.
13 years ago
Luca Barbato
44272c1ccc
avformat: refactor avformat_close_input
Do not crash if the input format is not allocated yet.
13 years ago
Luca Barbato
4d1f443c3d
avformat: simplify avformat_close_input
avio_close checks by itself for NULL condition.
13 years ago
Diego Biurrun
58139e141b
x86: dsputil: Move Xvid IDCT put/add functions to a more suitable place
13 years ago
Martin Storsjö
18d8825517
trasher: Include all the necessary headers
The missing headers are required for errno and for strerror.
This fixes building of this tool on mingw32ce.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
2017f0fdb7
x86: Remove some leftover declarations for non-existent functions
13 years ago
Mans Rullgard
8ff7857861
ARM: libavresample: NEON optimised generic fltp to s16 conversion
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
d26de339af
ARM: libavresample: NEON optimised stereo fltp to s16 conversion
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
643b5b794f
ARM: libavresample: NEON optimised flat float to s16 conversion
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Martin Storsjö
ca6b544ac9
os_support: Choose between direct.h and io.h using a configure check
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
7b07fab567
os_support: Include io.h instead of direct.h on mingw32ce
Windows CE doesn't have neither mkdir nor _mkdir officially (only
CreateDirectoryW), but mingw32ce has compat wrappers with these names
(declared in io.h since direct.h is unavailable).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
91ff4e83ca
x86: ac3dsp: Only refer to the ac3_downmix_sse symbol if it has been declared
This fixes building without inline assembly.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
b9141aa346
swscale: Remove two bogus asserts
13 years ago
Mans Rullgard
97cb9236cf
ac3: move ac3_downmix() from dsputil to ac3dsp
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Tim Walker
b901c30da6
lavr/audio_mix_matrix: acknowledge the existence of LFE2.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Tim Walker
3844572887
mlp_parser: avoid mapping multiple disctinct TrueHD channels to the same Libav channel.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Tim Walker
8919fee7d2
lavu/audioconvert: add a second low frequency channel.
Can be used by DTS-HD, TrueHD and E-AC-3, among others.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Christian Schmidt
07584eaf4a
mpegts: check substreams before discarding
Allow to extract the AC3 core from TrueHD with the "copy" codec.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Martin Storsjö
62c9ae11a7
Add a smooth streaming segmenter muxer
This muxer splits the output from the ismv muxer into individual
files, in realtime.
The same can also be done by the standalone tool ismindex, but this
muxer is needed for doing it in realtime (especially for live
streams that need extra handling for updating the lookahead fields
in the fragment headers).
Using this muxer, one can deliver live smooth streaming from a
normal static file web server. (Using ismindex, one can deliver
premade smooth streaming files from a static file web server,
or prepare files for serving with IIS.)
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
29a9b12b10
file: Add an avoption for disabling truncating existing files on open
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Tomas Härdin
5e3572893d
img2dec: always close AVIOContexts
Zero sized files would cause the contexts to leak away.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Martin Storsjö
c3bcd22ed3
rtpdec_jpeg: Error out on other unsupported type values as well
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
1743938df1
rtpdec_jpeg: Disallow using the reserved q values
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
1de9317bd0
rtpdec_jpeg: Fold the default qtables case into an existing if statement
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
a218deb856
rtpdec_jpeg: Store and reuse old qtables for q values 128-254
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
a252649059
rtpdec_jpeg: Simplify the calculation of the number of qtables
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
cbaa9eeda3
rtpdec_jpeg: Add more comments about the fields in the SOF0 section
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
31adff08a1
rtpdec_jpeg: Clarify where the subsampling magic numbers come from
Write out the numbers the way they are constructed, not just the
final values.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
c64d2a63df
rtpdec_jpeg: Don't use a bitstream writer for the EOI marker
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
20f325f320
rtpdec_jpeg: Don't needlessly use a bitstream writer for the header
Everything written with this bitstream writer is 8/16 bit units
(except for a pair of 4 bit values), so using a bitstream writer
isn't necessary.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
43957fcc71
rtpdec_jpeg: Simplify writing of the jpeg header
Generalize writing of any number of qtables. Don't manually write
16 bit values in two separate calls.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
932d8300d3
rtpdec_jpeg: Merge two if statements
This makes the code more readable and robust.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
7ef4323405
rtpdec_jpeg: Write the DHT section properly
Currently the size header of the generated DHT section is
incorrect, making the mjpeg decoder just skip it. Since the
written huffman tables are the default ones, this failure had
gone undetected.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
76fa7e09f1
utvideoenc: Add missing AV_ prefix to codec ID
13 years ago
Diego Biurrun
676ea8fae2
avserver: Add missing #include for av_gettime()
13 years ago
Martin Storsjö
6121a3ef7f
configure: Only disable aligned stack on MSVC on 32 bit
On 64 bit, the stack seems to be aligned enough for our needs.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
f69f51b3b2
configure: indentation cosmetics
13 years ago
Samuel Pitoiset
55e778bebd
rtpdec_jpeg: Add support for default quantizers
Generate quantization tables when they are not present in the
first chunk.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
1648a508fa
x86: dsputil: Move specific optimization settings out of global init function
They belong in the init functions specific to each CPU capability.
13 years ago
Anton Khirnov
0e8dccb79b
avplay: get rid of ugly casts in the options table
13 years ago
Anton Khirnov
4e82cbb629
avplay: fix prototypes for option callbacks.
They have been wrong since 11d957fbd8
13 years ago