Diego Biurrun
ac9362c5d9
Move misplaced file author information where it belongs
12 years ago
Anton Khirnov
f073b1500e
lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruft
12 years ago
Justin Ruggles
5364327186
adpcmenc: ensure calls to adpcm_ima_compress_sample() are in the right order
...
Should fix fate-acodec-adpcm-ima_wav with several compilers.
12 years ago
Justin Ruggles
095be4fbf6
adpcmenc: use planar sample format for adpcm_ima_wav and adpcm_ima_qt
12 years ago
Justin Ruggles
d9a13c2f56
adpcmenc: move 'ch' variable to higher scope
...
It is used for multiple codecs.
12 years ago
Justin Ruggles
9606f19b4e
adpcmenc: fix 3 instances of variable shadowing
12 years ago
Justin Ruggles
1e35574bad
adpcm_ima_wav: simplify encoding
12 years ago
Michael Niedermayer
aa264da5bf
adpcmenc: Calculate the IMA_QT predictor without overflow
...
Previously, the value given to put_bits was 10 bits long for positive
predictors, even though 9 bits were to be written. The extra bit could
in some cases overwrite existing bits in the bitstream writer cache.
This fixes a failed assert in put_bits.h, when running a version
built with -DDEBUG.
The fate test result gets slightly improved, thanks to getting rid
of the overwritten bits in the bitstream writer cache.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Justin Ruggles
5d4ef004bf
adpcm_swf: Use correct sample offsets when using trellis.
...
Fixes invalid reads when encoding mono streams when trellis is used.
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Ronald S. Bultje
98041afb5f
adpcm: don't duplicate identical AVSampleFmt array for each encoder.
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Justin Ruggles
24e74f0a0f
adpcmenc: update to AVCodec.encode2()
13 years ago
Justin Ruggles
770a5c6d02
adpcmenc: Use correct frame_size for Yamaha ADPCM.
...
Output packet size should match avctx->block_align. The target output packet
size is 1024 bytes.
Before:
mono - 1024 samples -> 512 bytes
stereo - 2048 samples -> 2048 bytes
After:
mono - 2048 samples -> 1024 bytes
stereo - 1024 samples -> 1024 bytes
13 years ago
Justin Ruggles
a3a0691bde
adpcmenc: remove some unneeded casts
13 years ago
Justin Ruggles
149f2058a4
adpcmenc: use int16_t and uint8_t instead of short and unsigned char.
13 years ago
Justin Ruggles
dd88ae831a
adpcmenc: fix adpcm_ms extradata allocation
...
Add FF_INPUT_BUFFER_PADDING_SIZE.
If allocation fails, also free memory which was allocated previously in
adpcm_encode_init().
13 years ago
Justin Ruggles
877a1d409c
adpcmenc: return proper AVERROR codes instead of -1
13 years ago
Justin Ruggles
cb023d9afe
adpcmenc: check for coded_frame allocation failure
13 years ago
Justin Ruggles
ddf70db6d7
adpcmenc: Do not set coded_frame->key_frame.
...
It is already set in avcodec_alloc_frame().
13 years ago
Chris Berov
dc6d043050
adpcmenc: cosmetics: pretty-printing
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Justin Ruggles
7c287b18a0
adpcm: update reference links
...
Add Multimedia Wiki link.
Mark dead links with [dead]. Some can still be accessed through archive.org.
Update URLs for pages which have moved.
Replace duplicated links in adpcmenc.c with a note to see the ADPCM decoder
reference documents.
13 years ago
Diego Biurrun
8671488799
Use explicit struct initializers for AVCodec declarations.
13 years ago
Justin Ruggles
9ff6d0791b
adpcmenc: Set bits_per_coded_sample
13 years ago
Baptiste Coudurier
b304244b54
adpcmenc: fix QT IMA ADPCM encoder
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
826c56d16e
adpcm: split ADPCM encoders and decoders into separate files.
...
Move shared tables to a separate file as well.
13 years ago