summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_vavpp.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-01 13:00:15 +0100
committerwm4 <wm4@nowhere>2013-11-01 13:00:15 +0100
commitdd344b43e87ef5a24a4ba739821998605e38a015 (patch)
treec0066b9e73fbb6f7ba5a46fed65db9a3a53a9695 /video/filter/vf_vavpp.c
parent2696148d64364b40e7b0d1d3de017d6afce4b43d (diff)
downloadmpv-dd344b43e87ef5a24a4ba739821998605e38a015.tar.bz2
mpv-dd344b43e87ef5a24a4ba739821998605e38a015.tar.xz
Enable -Wshadow
This one really did bite me hard (see previous commit), so enable it by default. Fix some cases of shadowing throughout the codebase. None of these change behavior, and all of these were correct code, and just tripped up the warning.
Diffstat (limited to 'video/filter/vf_vavpp.c')
-rw-r--r--video/filter/vf_vavpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/filter/vf_vavpp.c b/video/filter/vf_vavpp.c
index 62dd9a77a0..f9f77a1b64 100644
--- a/video/filter/vf_vavpp.c
+++ b/video/filter/vf_vavpp.c
@@ -342,8 +342,8 @@ static bool initialize(struct vf_priv_s *p)
if (!num)
continue;
VAProcDeinterlacingType algorithm = VAProcDeinterlacingBob;
- for (int i=0; i<num; ++i) { // find Bob
- if (caps[i].type != algorithm)
+ for (int n=0; n < num; n++) { // find Bob
+ if (caps[n].type != algorithm)
continue;
VAProcFilterParameterBufferDeinterlacing param;
param.type = VAProcFilterDeinterlacing;