[SCM] libav/experimental: Make av_class a pointer to const. Patch by Takis.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:16:49 UTC 2013
The following commit has been merged in the experimental branch:
commit 635a8cd27db8d3857febc0ea21bdd864dc956ae2
Author: Panagiotis Issaris <takis.issaris at uhasselt.be>
Date: Mon Mar 10 14:30:49 2008 +0000
Make av_class a pointer to const.
Patch by Takis.
Originally committed as revision 26210 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index e89ebca..7c29af4 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -274,7 +274,7 @@ static const AVOption options[] = {
#undef VE
#undef DEFAULT
-static AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
+static const AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
const char *sws_format_name(enum PixelFormat format)
{
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 0370068..5083c45 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -42,7 +42,7 @@ typedef struct SwsContext{
/**
* info on struct for av_log
*/
- AVClass *av_class;
+ const AVClass *av_class;
/**
* Note that src, dst, srcStride, dstStride will be copied in the
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list