[FFmpeg-cvslog] lavd/lavfi: Constify two variables.

Carl Eugen Hoyos git at videolan.org
Sat Oct 21 21:24:02 EEST 2017


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Sat Oct 21 20:22:52 2017 +0200| [535117d1f6deba266654b8a43cd5bd7630045fd3] | committer: Carl Eugen Hoyos

lavd/lavfi: Constify two variables.

Fixes the following warnings:
libavdevice/lavfi.c:136:16: warning: assignment discards 'const' qualifier from pointer target type
libavdevice/lavfi.c:137:17: warning: assignment discards 'const' qualifier from pointer target type

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

 libavdevice/lavfi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index ede391f4d6..986e579813 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -121,7 +121,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
 {
     LavfiContext *lavfi = avctx->priv_data;
     AVFilterInOut *input_links = NULL, *output_links = NULL, *inout;
-    AVFilter *buffersink, *abuffersink;
+    const AVFilter *buffersink, *abuffersink;
     int *pix_fmts = create_all_formats(AV_PIX_FMT_NB);
     enum AVMediaType type;
     int ret = 0, i, n;



More information about the ffmpeg-cvslog mailing list