[MPlayer-cvslog] r26210 - in trunk/libswscale: swscale.c swscale_internal.h

benoit subversion at mplayerhq.hu
Mon Mar 10 15:30:49 CET 2008


Author: benoit
Date: Mon Mar 10 15:30:49 2008
New Revision: 26210

Log:
Make av_class a pointer to const.
Patch by Takis.


Modified:
   trunk/libswscale/swscale.c
   trunk/libswscale/swscale_internal.h

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	(original)
+++ trunk/libswscale/swscale.c	Mon Mar 10 15:30:49 2008
@@ -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)
 {

Modified: trunk/libswscale/swscale_internal.h
==============================================================================
--- trunk/libswscale/swscale_internal.h	(original)
+++ trunk/libswscale/swscale_internal.h	Mon Mar 10 15:30:49 2008
@@ -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



More information about the MPlayer-cvslog mailing list