summaryrefslogtreecommitdiff
path: root/libavformat/seek-test.c
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2015-04-22 19:57:02 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-23 12:56:31 +0200
commit60191e3aec6a65ffcb8af9ad389df7ce31293e6d (patch)
tree1e9c9270ca4e2821e7e091e5c30a0400fad690e2 /libavformat/seek-test.c
parentdf287f3e4362982807d80a62e3122e2477b85892 (diff)
fate: add mp3 CBR seek test
This tests the "old", now non-default seek mode, and this requires a special extra argument. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/seek-test.c')
-rw-r--r--libavformat/seek-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/seek-test.c b/libavformat/seek-test.c
index 8b0611db71..1dd041d851 100644
--- a/libavformat/seek-test.c
+++ b/libavformat/seek-test.c
@@ -76,6 +76,8 @@ 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 {
argc = 1;
}