summaryrefslogtreecommitdiff
path: root/libavformat/seek-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/seek-test.c')
-rw-r--r--libavformat/seek-test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavformat/seek-test.c b/libavformat/seek-test.c
index 1926f2108d..bfd06db3bb 100644
--- a/libavformat/seek-test.c
+++ b/libavformat/seek-test.c
@@ -56,7 +56,7 @@ static void ts_str(char buffer[60], int64_t ts, AVRational base)
int main(int argc, char **argv)
{
const char *filename;
- AVFormatContext *ic = NULL;
+ AVFormatContext *ic = avformat_alloc_context();
int i, ret, stream_id;
int j;
int64_t timestamp;
@@ -76,8 +76,10 @@ int main(int argc, char **argv)
frame_count = atoi(argv[i+1]);
} else if(!strcmp(argv[i], "-duration")){
duration = atoi(argv[i+1]);
- } else if(!strcmp(argv[i], "-usetoc")) {
- av_dict_set(&format_opts, "usetoc", argv[i+1], 0);
+ } else if(!strcmp(argv[i], "-fastseek")) {
+ if (atoi(argv[i+1])) {
+ ic->flags |= AVFMT_FLAG_FAST_SEEK;
+ }
} else {
argc = 1;
}