Joakim Plate
dcce09d64b
dxva: Add ability to enable workaround for older ATI cards
The workaround needs to be enabled per PCI ID which cannot be detected inside
libavcodec. So add a flag to manually enable the alternate behavior.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
14 years ago
Justin Ruggles
e562fbd003
adpcm: move codec-specific variable declarations to the sections for the corresponding codecs.
14 years ago
Justin Ruggles
9662539c10
adpcm: check buffer size in Funcom ISS decoder before reading header.
Also use the post-header data size to control termination of the main
decoding loop.
14 years ago
Justin Ruggles
ba5d2890d7
adpcm: simplify reading of Funcom ISS frame header.
14 years ago
Justin Ruggles
5c9eb4fabb
adpcm: check buffer size in IMA DK4 decoder before reading header.
Also use the post-header data size to control termination of the main
decoding loop.
14 years ago
Justin Ruggles
a57ea1a87e
adpcm: simplify reading of IMA DK4 frame header.
14 years ago
Justin Ruggles
8114f94ac9
adpcm_ms: clean up reading of predictor coefficients
14 years ago
Justin Ruggles
943f4db552
adpcm_4xm: process planar packets sequentially rather than simultaneously.
Also properly clip the right channel step_index.
14 years ago
Justin Ruggles
119974b164
adpcm_ima_wav: process channel-interleaved blocks sequentially rather than simultaneously.
Speeds up the ADPCM IMA WAV decoder by 15-20% overall.
14 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.
14 years ago
Justin Ruggles
ac94b8bcc6
adpcm: simplify packet size bounds checking in the ADPCM IMA QT decoder.
This is easier to understand. It also avoids returning existing samples mixed
with new samples when the packet is too small.
14 years ago
Justin Ruggles
de0b586a87
adpcm: simplify and speed up several ADPCM decoders.
14 years ago
Justin Ruggles
5a9ed7c110
adpcm: pretty-print tables
14 years ago
Alex Converse
fcbe421cee
prores: Handle 0 or fewer bits left
show_bits() is undefined when the number of bits is less than or equal to
zero.
14 years ago
Mans Rullgard
bf00a73ace
dca: clear inactive subbands only once in qmf_32_subbands()
Writing zeros to the high entries in the array need only be
done once as the cutoff position is constant throughout the
loop.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
baf6b738f2
ARM: NEON optimised vector_fmac_scalar()
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
a92a1b93b4
dca: use vector_fmac_scalar from dsputil
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
fcca826a63
dsputil: add vector_fmac_scalar()
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
3d371f417e
ws_snd: misc cosmetic clean-ups
14 years ago
Justin Ruggles
659c719bc7
ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead.
14 years ago
Justin Ruggles
618b067d21
ws_snd: use memcpy() and memset() instead of loops
14 years ago
Justin Ruggles
6896aa7a38
ws_snd: use samples pointer for loop termination instead of a separate
iterator variable.
14 years ago
Justin Ruggles
6a818cb3ff
ws_snd: make sure number of channels is 1
14 years ago
Justin Ruggles
417364ce1f
ws_snd: add some checks to prevent buffer overread or overwrite.
14 years ago
Justin Ruggles
2322ced8da
ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16.
8-bit unsigned is the native sample format.
14 years ago
Justin Ruggles
4c5e7b27d5
flacdec: fix buffer size checking in get_metadata_size()
Adds an additional check before reading the next block header and avoids a
potential integer overflow when checking the metadata size against the
remaining buffer size.
14 years ago
Nicolas George
4ca59d1948
oggdec: add support for Xiph's CELT codec
This patch also introduces CODEC_ID_CELT.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Justin Ruggles
88f908fbdc
cosmetics: reindent and pretty-print
14 years ago
Justin Ruggles
8febd6afbc
libgsm: split init and close fuctions for encoder and decoder.
The decoder shouldn't be allocating coded_frame. It's also cleaner to split
them than to check avctx->codec->encode and avctx->codec->decode.
14 years ago
Mans Rullgard
6e4a35ced9
ppc: fix 32-bit PIC build
On 32-bit ppc, the GOT pointer must be loaded manually.
This adds a "get_got" assembler macro to compute the
GOT address. The "movrel" macro is updated to take an
additional parameter containing the GOT address since
no register is reserved for this purpose on ppc32.
These changes have no effect on ppc64 builds.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Justin Ruggles
4568c2bf97
vmdaudio: fix decoding of 16-bit audio format.
The initial sample of each block is raw 16-bit PCM, not DPCM.
Fixes decoding of all samples in:
http://streams.videolan.org/samples/game-formats/sierra-vmd/Lighthouse/
14 years ago
Laurent Aimar
d1186ff72d
h264: check for out of bounds reads in ff_h264_decode_extradata().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Diego Biurrun
8671488799
Use explicit struct initializers for AVCodec declarations.
14 years ago
Justin Ruggles
9ff6d0791b
adpcmenc: Set bits_per_coded_sample
14 years ago
Baptiste Coudurier
b304244b54
adpcmenc: fix QT IMA ADPCM encoder
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
bf334535b4
adpcmdec: Fix QT IMA ADPCM decoder
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Peter Ross
3a549eb82b
permit decoding of multichannel ADPCM_EA_XAS
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Reimar Döffinger
ffe92ff9f0
Fix input buffer size check in adpcm_ea decoder.
Unfortunately the output buffer size check assumes that the
input buffer is never over-consumed, thus this actually
also allowed to write outside the output buffer if "lucky".
Based on:
git.videolan.org/ffmpeg.git
commit 701d0eb185
14 years ago
Sean McGovern
c2d3f56107
fft: avoid a signed overflow
As a signed integer, 1<<31 overflows, so force it to unsigned.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
14 years ago
Luca Barbato
d554b33efe
ratecontrol: update last_qscale_for sooner
In order to make ratecontrol converge properly update the
last_qscale_for values when populating the qscale array.
It fixes the issue reported on
http://lists.libav.org/pipermail/libav-tools/2011-September/000050.html
14 years ago
Diego Biurrun
167d3b1673
prores: return more meaningful error values
14 years ago
Diego Biurrun
2161282439
prores: improve error message wording
14 years ago
Diego Biurrun
27ba121e90
prores: cosmetics: prettyprinting, drop useless parentheses
14 years ago
Diego Biurrun
2983f1f3be
prores: lowercase AVCodec name entry
All other codecs use lowercase names in that field.
14 years ago
Justin Ruggles
1993c6849c
8svx/iff: fix decoding of compressed stereo 8svx files.
Make the iff demuxer send the whole audio chunk to the decoder as a
single packet and move stereo interleaving from the iff demuxer to the
decoder.
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
14 years ago
Justin Ruggles
fda459cee7
8svx: log an error message if output buffer is too small
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
14 years ago
Justin Ruggles
0ac3b8fc4a
8svx: check packet size before reading the initial sample value.
14 years ago
Justin Ruggles
e371878416
8svx: output 8-bit samples instead of 16-bit.
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
14 years ago
Justin Ruggles
ac68607bfe
8svx: split delta decoding into a separate function.
Based on a patch by Stefano Sabatini.
git.videolan.org/ffmpeg.git
commit e280a4da2a
14 years ago
Maxim Poliakovski
be64629a13
Apple ProRes decoder
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago