aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/seek-test.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2011-10-28 18:32:51 +0200
committerJanne Grunau <janne-libav@jannau.net>2011-10-28 19:08:37 +0200
commitd88e9f1c07437c197f3b7c76454fbb5f9bb24a8f (patch)
treed3745f93adc52508f9be54d7f201faceb3ea0e4d /libavformat/seek-test.c
parent813907d42483279e767fc84f2d02aa088197a22d (diff)
downloadffmpeg-d88e9f1c07437c197f3b7c76454fbb5f9bb24a8f.tar.gz
seek-test: update to recent avformat api
Diffstat (limited to 'libavformat/seek-test.c')
-rw-r--r--libavformat/seek-test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/seek-test.c b/libavformat/seek-test.c
index 3dd60dc160..771036087a 100644
--- a/libavformat/seek-test.c
+++ b/libavformat/seek-test.c
@@ -64,10 +64,10 @@ int main(int argc, char **argv)
AVFormatContext *ic = NULL;
int i, ret, stream_id;
int64_t timestamp;
- AVFormatParameters params, *ap= &params;
- memset(ap, 0, sizeof(params));
- ap->channels=1;
- ap->sample_rate= 22050;
+ AVDictionary *format_opts = NULL;
+
+ av_dict_set(&format_opts, "channels", "1", 0);
+ av_dict_set(&format_opts, "sample_rate", "22050", 0);
/* initialize libavcodec, and register all codecs and formats */
av_register_all();
@@ -80,7 +80,7 @@ int main(int argc, char **argv)
filename = argv[1];
- ret = av_open_input_file(&ic, filename, NULL, 0, ap);
+ ret = avformat_open_input(&ic, filename, NULL, &format_opts);
if (ret < 0) {
fprintf(stderr, "cannot open %s\n", filename);
exit(1);