Martin Storsjö
73871dc96f
segment: Use the public av_write_header/av_write_trailer functions
...
With this change, the segmenter muxer doesn't rely on anything
not available/supported to libavformat external users, making
the segmenter muxer do things just like a normal segmenter
application using libavformat would do.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
0edae4e628
segment: Properly create new AVStreams for the chained muxer
...
Before, the chained muxer reused the AVStreams array from
the outer muxer, which made it impossible to use the proper
public functions (such as av_write_frame) when calling the
chained muxer.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
aa9f128b7c
segment: Add a missing space
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
4673a5a761
vf_overlay: properly sync inputs.
...
Right now it incorrectly assumes that the frames are sent in the proper
order, which worked with old ffmpeg and avconv versions by accident.
12 years ago
Anton Khirnov
ab35ec29a4
vf_overlay: get rid of pointless messing with timebase.
...
Output frames correspond 1:1 to input frames on the main input.
So use the main input timebase for output.
12 years ago
Anton Khirnov
cd15b7c03d
samplefmt: make av_samples_alloc() initialize the data to silence.
...
Right now the buffer is zeroed, which does not represent silence for U8(P).
12 years ago
Justin Ruggles
c9df48909e
libspeexdec: handle NULL return value from speex_packet_to_header()
...
This will happen when the extradata is not a valid Speex header.
12 years ago
Michael Niedermayer
769ed3057e
h264probe: Don't error out on bits that no longer are reserved
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Janne Grunau
1481e19825
mpegvideo: set extended_data in ff_update_duplicate_context()
...
AVFrame.extended_data has to reset to the AVFrame.data of the current
thread context after copying the frame contents.
Fixes crashes with frame-threading after 2bc0de3858
.
12 years ago
Justin Ruggles
45e5d0c3ac
libspeexdec: properly handle DTX for multiple frames-per-packet
12 years ago
Justin Ruggles
908e22b93a
libspeexdec: move the SpeexHeader from LibSpeexContext to where it is used
12 years ago
Justin Ruggles
892695c851
libspeexdec: simplify setting of frame_size
12 years ago
Justin Ruggles
27c3f9c03e
libspeexdec: set channel_layout
12 years ago
Justin Ruggles
29abb04e73
libspeexdec: If the channel count is not valid, decode as stereo.
...
When initialized as stereo, libspeex can decode either mono or stereo packets
and will output stereo.
12 years ago
Justin Ruggles
3b061c5e10
libspeexdec: improve setting of Speex mode and sample rate
...
If there is no extradata and the sample rate given by the user is not valid,
decode as ultra-wideband.
12 years ago
Dmitry Samonenko
ad11681acd
libspeex: Add a private option for enabling VAD
...
Speex detects non-speech periods and encodes them with just enough bits
to reproduce the background noise, aka ``comfort noise generation''.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
f0fce9f33e
xtea: Test inplace decryption
...
Based on test code by: Giorgio Vazzana <mywing81@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
b434500431
xtea: Fix CBC decryption when src==dst
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
ca074cc313
xtea: Factorize testing into a separate function
...
Based on a patch by Michael Niedermayer.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Diego Biurrun
fd712a5584
configure: Refactor HAVE_ options available on the command line
12 years ago
Diego Biurrun
8be5b0d6d5
avconv/avprobe: Add missing 'void' to exit_program() definition
12 years ago
Mans Rullgard
05e209c04c
Allow use of strncpy()
...
There are cases where strncpy() does exactly what is required.
A blanket ban forces more convoluted solutions to be used in those
cases and has been a cause of bugs.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Martin Storsjö
75366a504d
blowfish: Add more tests
...
Test inplace ECB, normal CBC and inplace CBC encryption/decryption.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
87f023f2c0
blowfish: Fix CBC decryption with dst==src
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
0cc9a64b92
blowfish: Factorize testing into a separate function
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Mans Rullgard
51a15ed740
ARM: use numeric ID for Tag_ABI_align_preserved
...
Some old assemblers still in use do not support named tags.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Martin Storsjö
4edb34f6cc
segment: Pass the interrupt callback on to the chained AVFormatContext, too
...
This might not be needed at the moment, but it's good practice to
pass it to all chained AVFormatContexts, if it would happen to be
used there at a later point.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Mans Rullgard
1ca3b62b10
ARM: bswap: drop armcc version of av_bswap16()
...
This function causes several versions of armcc to miscompile code,
and the performance impact is small.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Mans Rullgard
5e826fd65e
ARM: set Tag_ABI_align_preserved in all asm files
...
All our ARM asm preserves alignment so setting this attribute
in a common location is simpler. This removes numerous warnings
when linking with armcc.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Mans Rullgard
7bda4ed780
ARM: fix Thumb PIC on Apple
...
LDR with register offset and PC as base register is not available in
the Thumb instruction set so the addition must be done separately.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Luca Barbato
72d30b2792
nut: add do {} while (0) to GET_V
...
Make it consistent with the other function-like macros.
12 years ago
Alex Converse
b92dfb56d4
tiffenc: Check av_malloc() results.
13 years ago
Alex Converse
9bc055e358
tiffenc: Simplify pixel format setup using AVPixFmtDescriptor.
13 years ago
Diego Elio Pettenò
5e3f9979fa
Use atexit() instead of defining a custom exit_program() interface.
13 years ago
Derek Buitenhuis
bd680c7b49
msvc: Fix detection of VFW & Avisynth required libs
...
It should be vfw32.lib with MSVC.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Luca Barbato
1e46c63eb7
avformat: refactor avformat_write_header
...
Split away option settings, sanity checks and general setup.
13 years ago
Luca Barbato
86bbdf865e
avformat: refactor avformat_write_header
...
Mostly cosmetic changes adding some intermediate to shorten the lines.
13 years ago
Luca Barbato
55f9037f38
avformat: split muxing functions from util.c
13 years ago
Justin Ruggles
bfcd4b6a16
adpcmdec: set AVCodec.sample_fmts
13 years ago
Justin Ruggles
1478a3601e
twinvq: use planar sample format
13 years ago
Justin Ruggles
a34be78546
ralf: use planar sample format
13 years ago
Justin Ruggles
1a3459033d
mpc7/8: use planar sample format
13 years ago
Justin Ruggles
3fca0d7210
iac/imc: use planar sample format
13 years ago
Justin Ruggles
64c312aa29
dcadec: use float planar sample format
13 years ago
Justin Ruggles
cbf6ee7823
cook: use planar sample format
13 years ago
Justin Ruggles
9af4eaa8ea
atrac3: use float planar sample format
13 years ago
Justin Ruggles
461ba7e97a
apedec: output in planar sample format
13 years ago
Justin Ruggles
cf8c93ada4
8svx: use planar sample format
13 years ago
Justin Ruggles
fd41cb4370
avconv: improve sample format negotiation for decoder request
...
This takes into account planar vs. packed when comparing to find the closest
sample format match.
13 years ago
Nathan Caldwell
6cb8c85409
Opus encoder using libopus
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago