Michael Niedermayer
8cac86e091
vorbisdec: fix heap buffer overflow.
...
Found-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a6aa7e039a
mpegaudio_tablegen: try to fix hardcoded tables
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
571572fcdd
mp3dec: adjust IMDCT scaling to avoid overflows
...
Fixes ticket268
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Derek Buitenhuis
91c86d3cf8
Canopus Lossless decoder
...
At the moment it only does BGR24, but I plan to add the rest after.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Paul B Mahol
c2502b7b34
alac: remove redundant "alac: " from log messages
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Reimar Döffinger
98b0120668
nuv: Fix playback of RTjpeg from current MythTV,
...
The previous validity check seems to work only for some
(presumably older) files, in current versions the first bytes
now contain the data size.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
e1bc0171c0
nuv: check size of buffer before accessing it instead of after.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Diego Biurrun
19cf7163c1
dca: Switch dca_sample_rates to avpriv_ prefix; it is used across libs
13 years ago
Mans Rullgard
faa788227f
ARM: use =const syntax instead of explicit literal pools
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
998170913c
ARM: use standard syntax for all LDRD/STRD instructions
...
The standard syntax requires two destination registers for
LDRD/STRD instructions. Some versions of the GNU assembler
allow using only one with the second implicit, others are
more strict.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Nicolas George
6eee9f5596
8svx: ensure that packet size is multiple of channels.
...
Fix an assert failure with packets of invalid size.
13 years ago
Ronald S. Bultje
b6a3849adb
fft: port FFT/IMDCT 3dnow functions to yasm, and disable on x86-64.
...
64-bit CPUs always have SSE available, thus there is no need to compile
in the 3dnow functions. This results in smaller binaries.
13 years ago
Ronald S. Bultje
ddbe71b44f
dct-test: allow to compile without HAVE_INLINE_ASM.
13 years ago
Ronald S. Bultje
53dfaedc01
x86/dsputilenc: bury inline asm under HAVE_INLINE_ASM.
13 years ago
Paul B Mahol
296bcdd2a7
paf: use reget_bufer() instead of get_buffer()
...
Pallete is written to frame->data[1] only if it changes.
This fixes PAL8->PAL8 transcoding.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
b0c51bbcd1
h264_mc_template: switch to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
38d1c5a4cc
g722enc: switch to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
9e4bca16f8
dca: Move tables used outside of dcadec.c to a separate file.
13 years ago
Diego Biurrun
13a79cf84e
dca: Rename dca.c ---> dcadec.c
...
This will allow adding dca.c with tables used from other files.
13 years ago
Diego Biurrun
6376a3ad24
x86: h264dsp: Remove unused variable ff_pb_3_1
13 years ago
Nicolas George
d2ca5dd0f3
loco: fix return value.
...
The return value was the number of bytes left,
it is supposed to be the number of bytes used.
13 years ago
Nicolas George
91ec1c6cc3
loco: take decode overflow into account.
...
Commit 2bf0982
introduced an overflow check in loco_decode_plane,
but the error code is never taken into account, leading to
completely idiotic return values.
13 years ago
Nicolas George
b2814b034e
sp5xdec: sanitize return value.
...
i is the decoded size of a recoded packet, which is larger
than the original packet. Assume that if decoding succeeded,
all the packet was used.
13 years ago
Nicolas George
7a539e67f4
8svx: unify mono and stereo code paths.
13 years ago
Nicolas George
5caea648d4
8svx: remove useless rounding code.
...
samples_size and samples_idx are supposed to be multiple of
channels at all time. If they are, the division is exact;
if they are not, something is very wrong in the code.
13 years ago
Nicolas George
1c98781837
8svx: use a more direct condition.
...
esc->table was inited based on codec->id: re-testing codec->id
is code duplication and can lead to inconsistencies.
13 years ago
Nicolas George
9009fa6de4
movtextdec: fix return value for too small packets.
13 years ago
Nicolas George
3d5dc7d87d
mmvideo: count preamble size in return value.
...
MM_PREAMBLE_SIZE is subtracted from buf_size almost immediately.
The original size is still in avpkt->size.
13 years ago
Nicolas George
cc7eff1fa0
vc1dec: count ENDOFSEQ code in return value.
13 years ago
Diego Biurrun
8728b381cb
x86: h264dsp: Adjust YASM #ifdefs
...
This fixes compilation with YASM disabled.
13 years ago
Stefano Sabatini
23fc4dd6e7
lavc: add channels field to AVFrame
...
This is required otherwise it is not always possible to guess the number
of channels from the layout, for example if the channel layout is
unknown.
13 years ago
Ronald S. Bultje
b829b4ce29
h264: convert loop filter strength dsp function to yasm.
...
This completes the conversion of h264dsp to yasm; note that h264 also
uses some dsputil functions, most notably qpel. Performance-wise, the
yasm-version is ~10 cycles faster (182->172) on x86-64, and ~8 cycles
faster (201->193) on x86-32.
13 years ago
Michael Niedermayer
3b5ba60aa7
vc1dec: fix handling of max_coded dimensions
...
Fixes Ticket1502
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
30c8573dc7
mpeg4videoenc: ensure SAR is within the supported range
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
0177b7d23a
Improve descriptiveness of a number of codec and container long names
13 years ago
jamal
938e4470ae
options: Fix warning about incompatible pointer type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
be391fb6df
h264_ps: declare array of colorspace strings on its own line.
13 years ago
Mans Rullgard
f3eb008343
eamad/eatgq/eatqi: call special EA IDCT directly
...
These decoders use a special non-MPEG2 IDCT. Call it directly
instead of going through dsputil. There is never any reason
to use a regular IDCT with these decoders or to use the EA IDCT
with other codecs.
This also fixes the bizarre situation of eamad and eatqi decoding
incorrectly if eatgq is disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
591766a3a9
eamad: remove use of MpegEncContext
...
There is no sense in pulling in this monster struct just for
a handful of fields. The code does not call any functions
expecting an MpegEncContext.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
87cf481aa8
mpegvideo: remove unnecessary inclusions of faandct.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
72dabdfc58
aacenc: new default cutoff
...
Improves subjective quality
Formula and testing by: kamedo2 <fujisakihir90@yahoo.co.jp>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
5c81a9ff55
libx264: list possible profiles.
...
The values are listed if setting them fails.
Using "-profile help" or "-profile list" have that effect.
Similar to 3aba391
.
Suggested by "rogerdpack" in trac ticket #1529 .
13 years ago
Ronald S. Bultje
c83f44dba1
h264_idct_10bit: port x86 assembly to cpuflags.
13 years ago
Ronald S. Bultje
b3c5ae5607
fft: rename "z" to "zc" to prevent name collision.
...
Without this, cglobal will expand "z" to "zh" to access the high byte
in a register's word, which causes a name collision with the ZH(x) macro
further up in this file.
13 years ago
Michael Niedermayer
45838561f2
vc1dec: Override invalid macroblock quantizer
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Michael Niedermayer
2bf369b60c
vc1: avoid reading beyond the last line in vc1_draw_sprites()
...
Fixes overread
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Michael Niedermayer
1100acbab2
vc1dec: check that coded slice positions and interlacing match.
...
This fixes out of array writes
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Michael Niedermayer
0aa907cfb1
vc1dec: Do not ignore ff_vc1_parse_frame_header_adv return value
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
13 years ago
Michael Niedermayer
a2f91e7bcd
mpegaudiodec: switch to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
4d777eedfd
vp3: don't compile mmx IDCT functions on x86-64.
...
64-bit CPUs always have SSE2, and a SSE2 version exists, thus the MMX
version will never be used.
13 years ago