file: Move win32 utf8->wchar open wrapper to libavutil

When libavformat was changed to use the new avpriv_open function
in 51eb213d001, this silently bypassed the existing wrapper for
win32. Move the win32 wrapper into libavutil/file.c to make sure
it gets called everywhere (not just in the libavformat case).

This makes sure that non-ascii file names gets opened properly
(where file names internally are stored as utf8, but they get
converted to wchar_t and opened with _wsopen).

Signed-off-by: Martin Storsjö <martin@martin.st>
Reduce MAKE_ACCESSORS code duplication via a new header.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
FATE: add a TAK test
MAINTAINERS: add Alexander Strasser for the server

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/vf_perspective: factor u cliping code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay: free subtitle pictures on exit

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: fix memleak of non-bitmap subtitles

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: ensure the decoder is flushed before exiting or looping

Also make sure that we only exit or restart the video if it is not paused and
if the picture queue is empty.

There is still room for improvement (filters may also buffer some frames), but
the patch fixes the most common use cases and ticket #2783 as well.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay: check for filter EOF return codes

Fixes ticket #2800.

Signed-off-by: Marton Balint <cus@passwd.hu>
Merge commit 'dfc6b5c81491abf7effb97b23af17ccf7adcd132'

* commit 'dfc6b5c81491abf7effb97b23af17ccf7adcd132':
  file: Move win32 utf8->wchar open wrapper to libavutil

Merged-by: Michael Niedermayer <michaelni@gmx.at>
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  FATE: add a TAK test

Conflicts:
	tests/fate/lossless-audio.mak

No change as we already have a tak test with luckynight-partial.tak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/fifo: explicitly assert that a frame should have become available after request

May help tools like coverity

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avfilter/trim: Fix assertion failure with empty frames

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avformat/paf: Fix integer overflow and out of array read

Found-by:  Laurent Butti <laurentb@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/mem: Fix flipped condition

Fixes return code and later null pointer dereference

Found-by: Laurent Butti <laurentb@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/tiff: avoid seek back on reading tags

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avcodec/tiff: remove redundant check

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avutil/list: implementation
ffserver: split config parsing into smaller functions

This commit splits long parse_ffconfig function into smaller ones.
This also provides:
- a bit better error handling
- more than one loop of parsing is easier
ffserver: parse audio/video options in correct order

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>