avutil: Include io.h with a separate condition from windows console functions

Not all versions of windows have the console color functions,
while io.h might be needed for isatty (which can be found in
unistd.h or io.h).

Signed-off-by: Martin Storsjö <martin@martin.st>
avutil: Use a configure check to enable windows console functions

Not all versions or API subsets of windows have these functions.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure: Use headers in the check for _beginthreadex for w32threads

When targeting the metro API subset, this function still exists in
the link libraries, but is excluded from the headers. This makes
sure w32threads is automatically disabled when targeting this API
subset (since not all the necessary functions for it are available).

Signed-off-by: Martin Storsjö <martin@martin.st>
mvi: check av_mallocz() result

Signed-off-by: Paul B Mahol <onemda@gmail.com>
motionpixels: use meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
xldec: return meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
xldec: K&R formatting cosmetics

Signed-off-by: Paul B Mahol <onemda@gmail.com>
wnv1: return more meaningful error codes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
ws-snd1: return meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
shorten: return more meaningful error codes

Signed-off-by: Paul B Mahol <onemda@gmail.com>
gifdec: use av_fast_malloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
gifdec: rudimentary seeking

With this ffplay -loop X successfully seeks to start.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tests/ref/seek/lavf_gif: update for 9d5cfce85540: gifdec: rudimentary seeking

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
doc/ffmpeg-filters: add short description
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: Use headers in the check for _beginthreadex for w32threads
  avutil: Use a configure check to enable windows console functions
  avutil: Include io.h with a separate condition from windows console functions

Conflicts:
	libavutil/log.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
lavfi/geq: add T variable and example
fate/mp3: increase fuzz for NEON, due to different rounding from lrintf()

This should fix fate failures of the hecommon test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
lavu/opt: allow to set sample and pixel format with av_opt_set_int()

This change requires the user to specify min and max value, and makes
possible to prevent the user to set AV_{SAMPLE,PIX}_FMT_NONE if
forbidden.

Add required ifdeffery in case of mixed libraries, when libavutil is
updated but not the other libraries.

This is a followup of 08d0969c1402ccec4dce44bd430128fb59d7b790.
svq1dec: update w/h only if the header is successfully parsed.

Prevents inconsistency and out of array accesses.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
mxfdec: check index_tables before dereferencing in close.

Fixes null pointer dereference

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