diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-03-14 15:53:56 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-03-14 15:53:56 +0000 |
commit | b82744c9aeaa1ed7d668170efb7e0ff25d5f5e8e (patch) | |
tree | e697e8df0baf72ee3a8776ed0f67ae98c6148bf2 /tests/seek_test.c | |
parent | 32d885926dc6326865cd14bbe3e849f4d47f0db5 (diff) | |
download | ffmpeg-b82744c9aeaa1ed7d668170efb7e0ff25d5f5e8e.tar.gz |
Switch regression test to the new seeking API.
Originally committed as revision 17957 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/seek_test.c')
-rw-r--r-- | tests/seek_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/seek_test.c b/tests/seek_test.c index b4e0e419e0..abb993f015 100644 --- a/tests/seek_test.c +++ b/tests/seek_test.c @@ -91,7 +91,9 @@ int main(int argc, char **argv) st= ic->streams[stream_id]; timestamp= av_rescale_q(timestamp, AV_TIME_BASE_Q, st->time_base); } - ret = av_seek_frame(ic, stream_id, timestamp, (i&1)*AVSEEK_FLAG_BACKWARD); + //FIXME fully test the new seek API + if(i&1) ret = avformat_seek_file(ic, stream_id, INT64_MIN, timestamp, timestamp, 0); + else ret = avformat_seek_file(ic, stream_id, timestamp, timestamp, INT64_MAX, 0); printf("ret:%2d st:%2d ts:%f flags:%d\n", ret, stream_id, timestamp*(stream_id<0 ? 1.0/AV_TIME_BASE : av_q2d(st->time_base)), i&1); } |