[FFmpeg-cvslog] ffplay: add cast to fix warning in configure_video_filters()

Stefano Sabatini git at videolan.org
Sat Jun 23 00:45:43 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jun 21 18:32:40 2012 +0200| [39e019e8c1eeca2922d4f0f2b85e2e93909ae2ae] | committer: Stefano Sabatini

ffplay: add cast to fix warning in configure_video_filters()

Fix warning:
ffplay.c:1578:40: warning: passing argument 5 of ‘avfilter_graph_create_filter’ discards ‘const’ qualifier from pointer target type [enabled by default]
libavfilter/avfiltergraph.h:84:5: note: expected ‘void *’ but argument is of type ‘const enum PixelFormat *’

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

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 753ff91..b9104ec 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1575,7 +1575,7 @@ static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
 #if FF_API_OLD_VSINK_API
     ret = avfilter_graph_create_filter(&filt_out,
                                        avfilter_get_by_name("buffersink"),
-                                       "out", NULL, pix_fmts, graph);
+                                       "out", NULL, (void *)pix_fmts, graph);
 #else
     buffersink_params->pixel_fmts = pix_fmts;
     ret = avfilter_graph_create_filter(&filt_out,



More information about the ffmpeg-cvslog mailing list