[FFmpeg-cvslog] lavfi: add const to the AVFilter parameter of avfilter_graph_create_filter ()
Anton Khirnov
git at videolan.org
Mon Aug 5 09:30:25 CEST 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Jun 14 18:14:33 2013 +0200| [77cc958f60f73963be4281d6e82ef81707e40c26] | committer: Anton Khirnov
lavfi: add const to the AVFilter parameter of avfilter_graph_create_filter()
This function should never modify the filter.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=77cc958f60f73963be4281d6e82ef81707e40c26
---
libavfilter/avfilter.h | 2 +-
libavfilter/avfiltergraph.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index e741721..c5efdb8 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -1001,7 +1001,7 @@ int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter);
* @return a negative AVERROR error code in case of failure, a non
* negative value otherwise
*/
-int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
+int avfilter_graph_create_filter(AVFilterContext **filt_ctx, const AVFilter *filt,
const char *name, const char *args, void *opaque,
AVFilterGraph *graph_ctx);
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 236980f..de82735 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -139,7 +139,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
#endif
-int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
+int avfilter_graph_create_filter(AVFilterContext **filt_ctx, const AVFilter *filt,
const char *name, const char *args, void *opaque,
AVFilterGraph *graph_ctx)
{
More information about the ffmpeg-cvslog
mailing list