# HG changeset patch # User stefano # Date 1259193140 0 # Node ID a21b640dba502dbcae447439b4ee4125dd134703 # Parent c408fca01d497f4d28f9e8b1cc71115fcf91159b Use av_pix_fmt_descriptors in ff_is_hwaccel_pix_fmt() rather than access the PixFmtInfo.is_hwaccel field which is going to be removed. diff -r c408fca01d49 -r a21b640dba50 imgconvert.c --- a/imgconvert.c Wed Nov 25 23:29:36 2009 +0000 +++ b/imgconvert.c Wed Nov 25 23:52:20 2009 +0000 @@ -33,6 +33,7 @@ #include "avcodec.h" #include "dsputil.h" #include "colorspace.h" +#include "libavutil/pixdesc.h" #if HAVE_MMX #include "x86/mmx.h" @@ -601,7 +602,7 @@ int ff_is_hwaccel_pix_fmt(enum PixelFormat pix_fmt) { - return pix_fmt_info[pix_fmt].is_hwaccel; + return av_pix_fmt_descriptors[pix_fmt].flags & PIX_FMT_HWACCEL; } int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){