Kim Nguyen
2d16394f97
ppc32: Fix movrel
...
Fixes ticket272
14 years ago
Justin Ruggles
e6c52cee54
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
...
av_get_bits_per_sample_fmt() is deprecated.
14 years ago
Mans Rullgard
c5ee740745
x86: cabac: fix register constraints for 32-bit mode
...
Some operands need to be accessed in byte mode, which restricts the
available registers in 32-bit mode. Using the 'q' constraint selects
a suitable register.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
2143d69bdd
cabac: move x86 asm to libavcodec/x86/cabac.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
d075e7d540
x86: h264: cast pointers to intptr_t rather than int
...
Only the low-order bits are used here so the type is not important,
but this avoids a compiler warning.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
3a4edb76d6
x86: h264: remove hardcoded edi in decode_significance_8x8_x86()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
b92c1a6d26
x86: h264: remove hardcoded esi in decode_significance[_8x8]_x86()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
3fc4e36c78
x86: h264: remove hardcoded edx in decode_significance[_8x8]_x86()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
e4b5a204aa
x86: h264: remove hardcoded eax in decode_significance[_8x8]_x86()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
3146a30e61
x86: cabac: change 'a' constraint to 'r' in get_cabac_inline()
...
Nothing requires this value in %eax.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
f743595e87
x86: cabac: remove hardcoded esi in get_cabac_inline()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
da3af4db61
x86: cabac: remove hardcoded edx in get_cabac_inline()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
51f16a9bf2
x86: cabac: remove unused macro parameter
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
018c33838e
x86: cabac: remove hardcoded ebx in inline asm
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
6b712acc0e
x86: cabac: remove hardcoded struct offsets from inline asm
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
34ee43fc0f
cabac: remove inline asm under #if 0
...
A comment says it's not faster than the C code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
8fcc0e7978
cabac: remove BRANCHLESS_CABAC_DECODER switch
...
The code does not compile without this set.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
eaa2d5a90a
cabac: remove #if 0 cascade under never-set #ifdef ARCH_X86_DISABLED
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Ivan Kalvachev
093768c9a4
Fix bink audio playback outside of FFmpeg.
...
There are 2 known Bink audio codecs. Additionally they have
a different flavor if they are found inside Bink-b "BIKb" file.
In order to guess the correct flavor, the demuxer sets the audio
codec_tag to be the same as the file format tag.
This causes problem because same tag is used for both audio codecs.
The hack works in FFmpeg because audio codecs are identified by their
codec_id, but other players rely on standard behavior.
This fix removes the codec_tag hack and instead uses artificial
extradata format to signal the codec flavor. This would also
allow proper embedding of Bink audio in other containers.
Signed-off-by: Ivan Kalvachev <ikalvachev@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald Bultje
20153fb8f6
error_resilience: skip last-MV predictor step if MVs are not available.
...
Fixes crashes when playing broken MPEG2-TS streams.
14 years ago
Ronald Bultje
d42aaa802e
error_resilience: actually add counter when adding a MV predictor.
...
Without, the predictor isn't actually used.
14 years ago
Michael Niedermayer
3a07f5a47a
qdm2: Fix alignment of local array.
...
Fixes ticket270
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Ronald S. Bultje
ea6331f8bb
h264-mt: fix deadlock in packets with multiple slices (e.g. MP4).
14 years ago
Michael Niedermayer
867b10679c
Attempt to fix ticket266
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Alex Converse
4b84d5114d
sipr: Drop unused DSPContext
14 years ago
Alex Converse
1e3d5eec8e
sipr: include string.h for mem*()
14 years ago
Alex Converse
cb372931ff
sipr: Use memmove() to copy overlapped buffers.
14 years ago
Alex Converse
0c17beba97
h264: drop some ugly casts
14 years ago
Michael Niedermayer
a4233d1f95
h264: print actual slice number in "Too many slices" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
9291faeb67
jpegdec: include mjpb_skiptosod in debug output
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a09a3e8213
jpegdec: fix CJPG decoding.
...
Fixes ticket133
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
0aed4f81fe
w32threads: with only 1 thread there cant be a active threading mode.
...
Fixes ticket284
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
7ba262527f
flacenc: mark as lossless codec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
34dc7aa82b
libavcodec: add CODEC_CAP_LOSSLESS
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
ed63f527f2
Fix build if yasm is not available.
14 years ago
Daniel Kang
f188a1e0ca
H.264: Add x86 assembly for 10-bit MC Chroma H.264 functions.
...
Mainly ported from 8-bit H.264 MC Chroma.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Clément Bœsch
bde8055963
dcaenc: small quantization simplification.
14 years ago
Michael Niedermayer
44d1b4088f
qdm2: Fix alignment of local array.
...
Fixes ticket270
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anton Khirnov
78440c007c
lavc: add opt_find to AVCodecContext class.
...
Fixes encoder private options, which are broken now in ffmpeg, because
opt_default2() can't find them, thus making opt_default() to fail.
14 years ago
Carl Eugen Hoyos
5fb67d8039
Fix compilation with old yasm.
14 years ago
Alexander Strange
3803af22d8
h264: Complexify frame num gap shortening code
...
By observation it did not seem to handle prev_frame_num > frame_num.
This does not affect any files I have.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Mike Scheutzow
aa15e68721
Fix decoding of mpegts streams with h264 video that does *NOT* have b frames
...
One of the causes of this bug is that the h264 parser defaults low_delay
to 1, but the h264 codec defaults low_delay to 0. Really Ugly.
After many hours of looking at this, I'm still not sure how has_b_frames
is *intended* to behave, but to me the implementation appears way more
complicated than it ought to be.
My patch relies on the encoder to set an optional field in the SPS. This
works for libx264 streams, but I'm not sure that all h264 encoders will
set it.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Justin Ruggles
b203f65451
ac3enc: use correct alignment and length in channel coupling dsp functions.
...
This fixes a segfault when using the C version of ac3dsp.float_to_fixed24().
14 years ago
Mans Rullgard
88ff180ad6
ARM: update ff_h264_idct8_add4_neon for 4:4:4 changes
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Carl Eugen Hoyos
dbf23d191a
Reindent after last commit.
14 years ago
Carl Eugen Hoyos
b3452771c4
Fix multi-channel AAC encoding.
...
Fixes ticket 55.
14 years ago
Carl Eugen Hoyos
b1c450be49
Fix "redundant redeclaration" warning.
14 years ago
Carl Eugen Hoyos
19b8c98828
Fix compilation with --disable-everything --enable-encoder=ac3/ac3_fixed.
14 years ago
William Yu
b19313218c
mjpegenc: Fix JFIF version
14 years ago
Mans Rullgard
e897a633cd
ARM: factor some repetitive code into macros
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago