dshow: attempt to build shared as well as static

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
dsputil: Move ff_block_permute to mpegvideo_enc
dsputil: Move get_penalty_factor() to the only place it is used.
mjpegdec: use put_pixels instead of copy_block8

Signed-off-by: Mans Rullgard <mans@mansr.com>
dsputil: Drop unused functions copy_block{2|4|16}
dsputil: Move ff_svq3 function declarations to a separate header
indeo3: replace use of copy_block4 with put_pixels

The destination is sufficiently aligned for put_pixels here.

Signed-off-by: Mans Rullgard <mans@mansr.com>
dsputil: Move copy_block functions to a separate header
dsputil: Move ff_h264_idct function declarations to a separate header
dsputil: Move ff_shrink* function declarations to separate header
vc1dec: Fix destination pointers in context for fields

This replaces a large number of checks for the second field by
fixing the pointers when they are setup

This should also fix I/BI field pictures

Changes checksums for vc1_sa10143, the file becomes slightly closer
to what the reference decoder outputs

Based on "vc1dec: the second field is written wrong to the picture"
         by Sebastian Sandberg <sebastiand.sandberg@gmail.com>

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
riff: chunks must be at 2 byte boundary

Fixes #2244.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
ff_end_tag: assert that the start is aligned.

If its start is not aligned then aligning its end will
likely break many demuxers as they check the size and not
the position.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dxva2: Prevent redefinition of _WIN32_WINNT

Don't redefine _WIN32_WINNT when targeting Win7/8

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dsp: make put_no_rnd_pixels_tab 4x4 big

This makes it match the other tables and fixes out of array acceses.

Fixes CID980012

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
dsputil: Remove commented-out, unused function declarations
dsputil: Move rnd_avg inline functions to a separate header
dsputil: Move WRAPPER8_16_SQ macro to the only place it is used
dsputil: Move LOCAL_ALIGNED macros to libavutil
dsputil: Move fdct function declarations to dct.h