Mercurial > libavcodec.hg
changeset 10572:a21b640dba50 libavcodec
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.
author | stefano |
---|---|
date | Wed, 25 Nov 2009 23:52:20 +0000 |
parents | c408fca01d49 |
children | ac49ab818d4d |
files | imgconvert.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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){