changeset 26178:5ba88511ec0a

Make av_class a pointer to const. Patch by Takis.
author benoit
date Mon, 10 Mar 2008 14:30:49 +0000
parents 9ca242299b22
children 5ccc75e9b53f
files libswscale/swscale.c libswscale/swscale_internal.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Mon Mar 10 14:28:25 2008 +0000
+++ b/libswscale/swscale.c	Mon Mar 10 14:30:49 2008 +0000
@@ -274,7 +274,7 @@
 #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)
 {
--- a/libswscale/swscale_internal.h	Mon Mar 10 14:28:25 2008 +0000
+++ b/libswscale/swscale_internal.h	Mon Mar 10 14:30:49 2008 +0000
@@ -42,7 +42,7 @@
     /**
      * info on struct for av_log
      */
-    AVClass *av_class;
+    const AVClass *av_class;
 
     /**
      * Note that src, dst, srcStride, dstStride will be copied in the