dirac: Only use MMX if MMX is available.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dirac/x86: Fix handling blocksizes that are not a multiple of 4

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
bfin: update VP3 idct

The block must be set to 0.
bfin: Separate VP3 initialization code
avfilter_get_audio_buffer_ref_from_frame: fix handling of >8 channels

Found-by: inferno@chromium.org
Reported-by: Dale Curtis <dalecurtis@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
vp3dec: move threads check out of header packet type check

Prevents reconfiguration with threads which is unsupported
and would bring the contexts into an inconsistent state.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
wmavoicedec: use the checked bitstream, reader

Fixes out of array reads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
takdec: switch to init_get_bits8()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
x86: Simplify some arch conditionals
iff/deep: fix rle32 on big-endian

Fixes ticket #2197.

Signed-off-by: Peter Ross <pross@xvid.org>
h264: check the pixel format directly and force a reinit on mismatches.

The existing checks are insufficient to detect a pixel format
changes in case of some damaged streams.
Fixes inconsistency and later out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
eatgv: use fixed-width types where appropriate.
mdec: merge mdec_common_init() into decode_init().

There is no point in keeping those two functions separate.
mdec: cosmetics, reformat
mdec: return meaningful error codes.
mimic: remove a pointless cast.
rawdec: use AVPALETTE_SIZE instead of magic constants.
mvi: set framerate

This container does not store timestamps and thus supports CFR only.
pthread: make ff_thread_release_buffer idempotent.

I.e. don't do anything on already released frames.
utvideoenc/v410enc: do not set AVFrame.reference.

That field will be deprecated.