[FFmpeg-devel] [PATCH]Fix dxva2 detection

Michael Niedermayer michaelni at gmx.at
Tue Sep 13 23:57:51 CEST 2011


On Tue, Sep 13, 2011 at 03:17:33PM -0300, Ramiro Polla wrote:
> On Mon, Sep 12, 2011 at 9:51 PM, Michael Niedermayer <michaelni at gmx.at> wrote:
> > On Mon, Sep 12, 2011 at 09:20:08PM -0300, Ramiro Polla wrote:
> >> On Mon, Sep 12, 2011 at 6:56 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> >> > I needed this patch on Win64, any objections?
> >> > See libavcodec/dxva2_internal.h, line 26.
> >> >
> >> > Please comment, Carl Eugen
> >>
> >> The only issue I know of while detecting dxva2 with mingw-w64 is
> >> caused by this line:
> >> check_struct dxva2api.h DXVA_PictureParameters wDecodedPictureIndex
> >>
> >> This is related to dxva2api.h provided by videolan. This struct was
> >> added at some point at the same time vc1 dxva2 was added to FFmpeg. To
> >> prevent builds failing when people used the old version of dxva2api.h,
> >> this check was added to configure in r21444.
> >>
> >> I don't think anyone still has that old version of dxva2api.h from
> >> videolan. mingw-w64 should be used instead of mingw32, and mingw-w64
> >> contains a proper dxva2api.h, which is properly detected by configure
> >> as-is. The only issue is that vc1 dxva2 is not enabled in mingw-w64
> >> because that check lacks -D_WIN32_WINNT=0x0600. I suggest that check
> >> be removed (r21444 be reverted).
> >
> > if you want me to revert it, just say so
> 
> Please do.

locally done

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110913/ef7df83f/attachment.asc>


More information about the ffmpeg-devel mailing list