[FFmpeg-cvslog] r20616 - trunk/libavcodec/imgconvert.c

stefano subversion
Thu Nov 26 00:52:20 CET 2009


Author: stefano
Date: Thu Nov 26 00:52:20 2009
New Revision: 20616

Log:
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.

Modified:
   trunk/libavcodec/imgconvert.c

Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c	Thu Nov 26 00:33:47 2009	(r20615)
+++ trunk/libavcodec/imgconvert.c	Thu Nov 26 00:52:20 2009	(r20616)
@@ -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 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){



More information about the ffmpeg-cvslog mailing list