[FFmpeg-devel] [PATCH]lavfi/nnedi: Fix a compilation warning
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Feb 22 23:37:01 CET 2016
Hi!
Attached patch fixes the following warning for me when compiling nnedi:
libavfilter/vf_nnedi.c:611:15: warning: assignment discards ‘const’ qualifier
from pointer target type
Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c
index 330d3d6..b14aa64 100644
--- a/libavfilter/vf_nnedi.c
+++ b/libavfilter/vf_nnedi.c
@@ -601,7 +601,7 @@ static void evalfunc_1(NNEDIContext *s, FrameData *frame_data)
const int ystart = frame_data->field[plane];
const int ystop = height - 12;
- uint8_t *srcpp;
+ const uint8_t *srcpp;
if (!(s->process_plane & (1 << plane)))
continue;
More information about the ffmpeg-devel
mailing list