From 7f97108f0f1df7b7d06bf36b9f2a0cdedb533e50 Mon Sep 17 00:00:00 2001 From: benoit Date: Mon, 10 Mar 2008 14:30:49 +0000 Subject: Make av_class a pointer to const. Patch by Takis. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26210 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale.c | 2 +- libswscale/swscale_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libswscale') 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 -- cgit v1.2.3