avformat/seek-test: Support passing options to demuxers and protocols

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-02-29 21:37:51 +01:00
parent 2355b7458e
commit a870aa89bf
1 changed files with 2 additions and 0 deletions

View 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;
}