diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-06-21 18:32:40 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-23 00:42:51 +0200 |
commit | 39e019e8c1eeca2922d4f0f2b85e2e93909ae2ae (patch) | |
tree | aaf9da3999da8eb36b776a9d15e2dca21185ed29 | |
parent | 1dce2368bb63c678d41f6c556ffdb155d252f015 (diff) | |
download | ffmpeg-39e019e8c1eeca2922d4f0f2b85e2e93909ae2ae.tar.gz |
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 *’
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |