diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-01-31 20:04:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-01-31 20:04:17 +0000 |
commit | aba29e6feba0ab0d52cdd711cd5c1dbe8bbb5877 (patch) | |
tree | ad99eafda001a254cd98e42968a0168e51f468ed /tests/seek_test.c | |
parent | bb41f2e774119bc8604299eefd5481bb66a3be77 (diff) | |
download | ffmpeg-aba29e6feba0ab0d52cdd711cd5c1dbe8bbb5877.tar.gz |
Fix b-libav.ul/al seek regression test.
Originally committed as revision 11696 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/seek_test.c')
-rw-r--r-- | tests/seek_test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/seek_test.c b/tests/seek_test.c index 2ab71612a7..b1a2c939a5 100644 --- a/tests/seek_test.c +++ b/tests/seek_test.c @@ -31,6 +31,10 @@ int main(int argc, char **argv) AVFormatContext *ic; int i, ret, stream_id; int64_t timestamp; + AVFormatParameters params, *ap= ¶ms; + memset(ap, 0, sizeof(params)); + ap->channels=1; + ap->sample_rate= 22050; /* initialize libavcodec, and register all codecs and formats */ av_register_all(); @@ -50,7 +54,7 @@ int main(int argc, char **argv) exit(1); } - ret = av_open_input_file(&ic, filename, NULL, 0, NULL); + ret = av_open_input_file(&ic, filename, NULL, 0, ap); if (ret < 0) { fprintf(stderr, "cannot open %s\n", filename); exit(1); |