summaryrefslogtreecommitdiffstats
path: root/demux/demux_lavf.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 /demux/demux_lavf.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 'demux/demux_lavf.c')
-rw-r--r--demux/demux_lavf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c
index 9b8881fc8a..e80db5aed4 100644
--- a/demux/demux_lavf.c
+++ b/demux/demux_lavf.c
@@ -649,7 +649,7 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check)
t = av_dict_get(c->metadata, "title", NULL, 0);
demuxer_add_chapter(demuxer, t ? bstr0(t->value) : bstr0(NULL),
start, end, i);
- AVDictionaryEntry *t = NULL;
+ t = NULL;
while ((t = av_dict_get(c->metadata, "", t, AV_DICT_IGNORE_SUFFIX))) {
demuxer_add_chapter_info(demuxer, i, bstr0(t->key),
bstr0(t->value));