[FFmpeg-cvslog] doc/examples/filter_audio: const correctness

Diego Biurrun git at videolan.org
Mon Oct 30 18:27:42 EET 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Apr 22 13:12:29 2017 +0200| [f25609ff06b093d82548c92fc2031cd2e66c20d3] | committer: Diego Biurrun

doc/examples/filter_audio: const correctness

doc/examples/filter_audio.c:168:17: warning: assignment discards ‘const’ qualifier from pointer target type

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f25609ff06b093d82548c92fc2031cd2e66c20d3
---

 doc/examples/filter_audio.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/examples/filter_audio.c b/doc/examples/filter_audio.c
index 60fe107dda..458004355f 100644
--- a/doc/examples/filter_audio.c
+++ b/doc/examples/filter_audio.c
@@ -64,13 +64,13 @@ static int init_filter_graph(AVFilterGraph **graph, AVFilterContext **src,
 {
     AVFilterGraph *filter_graph;
     AVFilterContext *abuffer_ctx;
-    AVFilter        *abuffer;
+    const AVFilter  *abuffer;
     AVFilterContext *volume_ctx;
-    AVFilter        *volume;
+    const AVFilter  *volume;
     AVFilterContext *aformat_ctx;
-    AVFilter        *aformat;
+    const AVFilter  *aformat;
     AVFilterContext *abuffersink_ctx;
-    AVFilter        *abuffersink;
+    const AVFilter  *abuffersink;
 
     AVDictionary *options_dict = NULL;
     uint8_t options_str[1024];



More information about the ffmpeg-cvslog mailing list