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
Ronald S. Bultje
a5bbb1242c
h264_loopfilter: port x86 simd to cpuflags.
13 years ago
jamal
64c53fa16a
dxva2: Fix some warnings about incompatible pointer type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
d07ff3cd5a
h264_chromamc_10bit: port x86 simd to cpuflags.
13 years ago
Ronald S. Bultje
4a26fdd852
vp3: port x86 SIMD to cpuflags.
13 years ago
Michael Niedermayer
0fa352623d
dvdsubenc: switch to av_assert
...
we use av_assert0() because the previous code unconditionally
enabled the assert.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
76888c64b0
rv34: port x86 SIMD to cpuflags.
13 years ago
Ronald S. Bultje
158744a4cd
vp56: only compile MMX SIMD on x86-32.
...
All x86-64 CPUs have SSE2, so the MMX version will never be used. This
leads to smaller binaries.
13 years ago
Ronald S. Bultje
2734ba787b
vp56: port x86 simd to cpuflags.
13 years ago
Ronald S. Bultje
5361e10a5e
proresdsp: port x86 assembly to cpuflags.
13 years ago
Justin Ruggles
81f548de57
alac: check for truncated packets
...
This will give a clearer error message when the error is caused by a
truncated packet.
13 years ago
Justin Ruggles
fb57e913e1
alac: reverse lpc coeff order, simplify filter
...
Reversing the lpc coefficient order simplifies indexing in the filter.
13 years ago
jamal
52a62f9085
dwt: Fix several warnings about incompatible pointer type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago