lavfi: add const to AVFilterContext.filter.
authorAnton Khirnov <anton@khirnov.net>
Sun, 31 Mar 2013 06:20:06 +0000 (08:20 +0200)
committerAnton Khirnov <anton@khirnov.net>
Thu, 11 Apr 2013 18:32:39 +0000 (20:32 +0200)
lavfi should never modify the filter through that pointer.

libavfilter/avfilter.h

index f0b79f5..f598b9f 100644 (file)
@@ -439,7 +439,7 @@ typedef struct AVFilter {
 struct AVFilterContext {
     const AVClass *av_class;              ///< needed for av_log()
 
-    AVFilter *filter;               ///< the AVFilter of which this is an instance
+    const AVFilter *filter;         ///< the AVFilter of which this is an instance
 
     char *name;                     ///< name of this filter instance