Browse code

img2dec: remove GLOB_TILDE support.

tilde expansion should/can be done by the shell

Reviewed-by: Alexander Strasser <eclipse7@gmx.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2012/03/30 07:35:01
Showing 1 changed files
... ...
@@ -35,12 +35,6 @@
35 35
 #ifndef GLOB_NOMAGIC
36 36
 #define GLOB_NOMAGIC 0
37 37
 #endif
38
-#ifndef GLOB_TILDE
39
-#define GLOB_TILDE 0
40
-#endif
41
-#ifndef GLOB_TILDE_CHECK
42
-#define GLOB_TILDE_CHECK GLOB_TILDE
43
-#endif
44 38
 #ifndef GLOB_BRACE
45 39
 #define GLOB_BRACE 0
46 40
 #endif
... ...
@@ -249,7 +243,7 @@ static int read_header(AVFormatContext *s1)
249 249
             *p = 0;
250 250
             av_free(dup);
251 251
 
252
-            gerr = glob(s->path, GLOB_NOCHECK|GLOB_BRACE|GLOB_NOMAGIC|GLOB_TILDE_CHECK, NULL, &s->globstate);
252
+            gerr = glob(s->path, GLOB_NOCHECK|GLOB_BRACE|GLOB_NOMAGIC, NULL, &s->globstate);
253 253
             if (gerr != 0) {
254 254
                 return AVERROR(ENOENT);
255 255
             }