Change fmt-conversion.h to include <libavutil/pixfmt.h> instead of
<libavutil/avutil.h> which no longer indirectly includes the former.
This fixes compilation with latest Libav. Also remove superfluous
config.h #include.
The pixfmt.h #include is needed for 'enum PixelFormat'. avutil.h
already stopped including pixfmt.h more than a year ago, but that did
not cause visible breakage at the time. AFAIK the C standard does not
allow incomplete enum types, but it seems that GCC and other relevant
compilers accept function declarations using not-yet-defined enum
types without warnings. However, Libav now renamed 'enum PixelFormat'
to 'enum AVPixelFormat', adding a '#define PixelFormat AVPixelFormat'
for backwards compatibility. We need this compatibility define because
we're still using the PixelFormat name, but it of course does not work
if pixfmt.h is not included; thus the missing include now caused a
compilation failure.
Also restructure the code so it provides a pixfmt2imgfmt function, too.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28561 b3059339-0415-0410-9bf9-f77b7e298cf2
same place. It can't break anything worse than it is now (i.e. not working/supported
at all) and hopefully triggers a bug report so it gets fixed if it's wrong ;-)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24436 b3059339-0415-0410-9bf9-f77b7e298cf2
This fixes recent bug with x264 and '-vf scale'.
Patch by Luca Abeni (lucabe72 at email dot it); applied at his request.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19936 b3059339-0415-0410-9bf9-f77b7e298cf2