Make av_class a pointer to a const AVClass. Addresses one warning in

imgresample.c.

Originally committed as revision 12352 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Panagiotis Issaris 17 years ago
parent ebf71dbda5
commit d42a814ef1
  1. 2
      libavcodec/avcodec.h
  2. 2
      libavcodec/imgresample.c
  3. 2
      libavcodec/utils.c
  4. 2
      libavfilter/avfilter.h

@ -791,7 +791,7 @@ typedef struct AVCodecContext {
* information on struct for av_log * information on struct for av_log
* - set by avcodec_alloc_context * - set by avcodec_alloc_context
*/ */
AVClass *av_class; const AVClass *av_class;
/** /**
* the average bitrate * the average bitrate
* - encoding: Set by user; unused for constant quantizer encoding. * - encoding: Set by user; unused for constant quantizer encoding.

@ -48,7 +48,7 @@
#define LINE_BUF_HEIGHT (NB_TAPS * 4) #define LINE_BUF_HEIGHT (NB_TAPS * 4)
struct SwsContext { struct SwsContext {
AVClass *av_class; const AVClass *av_class;
struct ImgReSampleContext *resampling_ctx; struct ImgReSampleContext *resampling_ctx;
enum PixelFormat src_pix_fmt, dst_pix_fmt; enum PixelFormat src_pix_fmt, dst_pix_fmt;
}; };

@ -768,7 +768,7 @@ static const AVOption options[]={
#undef D #undef D
#undef DEFAULT #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){ void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type){
int flags=0; int flags=0;

@ -392,7 +392,7 @@ typedef struct
/** An instance of a filter */ /** An instance of a filter */
struct AVFilterContext 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 AVFilter *filter; ///< the AVFilter of which this is an instance

Loading…
Cancel
Save