[SCM] libav/experimental: 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.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:54:53 UTC 2013
The following commit has been merged in the experimental branch:
commit 8e861e1b1ee559828096152d06fb99356ef3e5c4
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Wed Nov 25 23:52:20 2009 +0000
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
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index bf9ed39..9dfef3a 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){
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list