[FFmpeg-cvslog] r12352 - in trunk: libavcodec/avcodec.h libavcodec/imgresample.c libavcodec/utils.c libavfilter/avfilter.h

takis subversion
Thu Mar 6 18:41:31 CET 2008


Author: takis
Date: Thu Mar  6 18:41:31 2008
New Revision: 12352

Log:
Make av_class a pointer to a const AVClass. Addresses one warning in
imgresample.c.


Modified:
   trunk/libavcodec/avcodec.h
   trunk/libavcodec/imgresample.c
   trunk/libavcodec/utils.c
   trunk/libavfilter/avfilter.h

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	(original)
+++ trunk/libavcodec/avcodec.h	Thu Mar  6 18:41:31 2008
@@ -791,7 +791,7 @@ typedef struct AVCodecContext {
      * information on struct for av_log
      * - set by avcodec_alloc_context
      */
-    AVClass *av_class;
+    const AVClass *av_class;
     /**
      * the average bitrate
      * - encoding: Set by user; unused for constant quantizer encoding.

Modified: trunk/libavcodec/imgresample.c
==============================================================================
--- trunk/libavcodec/imgresample.c	(original)
+++ trunk/libavcodec/imgresample.c	Thu Mar  6 18:41:31 2008
@@ -48,7 +48,7 @@
 #define LINE_BUF_HEIGHT (NB_TAPS * 4)
 
 struct SwsContext {
-    AVClass *av_class;
+    const AVClass *av_class;
     struct ImgReSampleContext *resampling_ctx;
     enum PixelFormat src_pix_fmt, dst_pix_fmt;
 };

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Thu Mar  6 18:41:31 2008
@@ -768,7 +768,7 @@ static const AVOption options[]={
 #undef D
 #undef DEFAULT
 
-static AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options };
+static const AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options };
 
 void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type){
     int flags=0;

Modified: trunk/libavfilter/avfilter.h
==============================================================================
--- trunk/libavfilter/avfilter.h	(original)
+++ trunk/libavfilter/avfilter.h	Thu Mar  6 18:41:31 2008
@@ -392,7 +392,7 @@ typedef struct
 /** An instance of a filter */
 struct AVFilterContext
 {
-    AVClass *av_class;              ///< needed for av_log()
+    const AVClass *av_class;              ///< needed for av_log()
 
     AVFilter *filter;               ///< the AVFilter of which this is an instance
 




More information about the ffmpeg-cvslog mailing list