summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2008-03-10 14:30:49 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-03-10 14:30:49 +0000
commit635a8cd27db8d3857febc0ea21bdd864dc956ae2 (patch)
treeecfe2f0ace65989f88ff9bf9c1e9248c5617e7b3 /libswscale
parent710af50e0c9723d856b330cfd297c82b5a76e946 (diff)
Make av_class a pointer to const.
Patch by Takis. Originally committed as revision 26210 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
-rw-r--r--libswscale/swscale_internal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index e89ebca066..7c29af42b4 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 0370068122..5083c455b3 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