diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-25 23:52:20 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-11-25 23:52:20 +0000 |
commit | 8e861e1b1ee559828096152d06fb99356ef3e5c4 (patch) | |
tree | e800b148817a89407acfd6b19805305da126befd | |
parent | 9ff261a2b2a4b6485f219f5ed4a63ff2738e85ee (diff) | |
download | ffmpeg-8e861e1b1ee559828096152d06fb99356ef3e5c4.tar.gz |
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.
Originally committed as revision 20616 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/imgconvert.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index bf9ed39287..9dfef3acaf 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -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 @@ void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt) 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){ |