avformat/seek-test: Support passing options to demuxers and protocols
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 29 Feb 2016 20:37:51 +0000 (21:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 2 Mar 2016 01:12:56 +0000 (02:12 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/seek-test.c

index bfd06db..904b435 100644 (file)
@@ -80,6 +80,8 @@ int main(int argc, char **argv)
             if (atoi(argv[i+1])) {
                 ic->flags |= AVFMT_FLAG_FAST_SEEK;
             }
+        } else if(argv[i][0] == '-' && argv[i+1]) {
+            av_dict_set(&format_opts, argv[i] + 1, argv[i+1], 0);
         } else {
             argc = 1;
         }