diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2015-01-20 22:03:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-21 21:51:28 +0100 |
commit | 9a9b088d9e2d054aa9467baacc61fc247818c7bf (patch) | |
tree | ac8ded282d619c777caacb8b69033ae5cf2eebcf /libavformat | |
parent | 5f764f43d27bdc18908868e01047b85da584d99b (diff) | |
download | ffmpeg-9a9b088d9e2d054aa9467baacc61fc247818c7bf.tar.gz |
libavformat/img2dec: fix warning when !HAVE_GLOB
Variables are unused in this case.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/img2dec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index 329e61d0c4..68cbefd12c 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -227,8 +227,10 @@ int ff_img_read_header(AVFormatContext *s1) if (s->pattern_type == PT_GLOB_SEQUENCE) { s->use_glob = is_glob(s->path); if (s->use_glob) { +#if HAVE_GLOB char *p = s->path, *q, *dup; int gerr; +#endif av_log(s1, AV_LOG_WARNING, "Pattern type 'glob_sequence' is deprecated: " "use pattern_type 'glob' instead\n"); @@ -494,8 +496,8 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt) static int img_read_close(struct AVFormatContext* s1) { - VideoDemuxData *s = s1->priv_data; #if HAVE_GLOB + VideoDemuxData *s = s1->priv_data; if (s->use_glob) { globfree(&s->globstate); } |